Show More
@@ -37,13 +37,14 b' from webob.exc import HTTPBadRequest' | |||
|
37 | 37 | |
|
38 | 38 | from beaker.cache import cache_region, region_invalidate |
|
39 | 39 | |
|
40 | from rhodecode.lib import helpers as h | |
|
40 | 41 | from rhodecode.lib.compat import product |
|
41 | 42 | from rhodecode.lib.vcs.exceptions import ChangesetError, EmptyRepositoryError, \ |
|
42 | 43 | NodeDoesNotExistError |
|
43 | 44 | from rhodecode.config.conf import ALL_READMES, ALL_EXTS, LANGUAGES_EXTENSIONS_MAP |
|
44 | 45 | from rhodecode.model.db import Statistics, CacheInvalidation |
|
45 | 46 | from rhodecode.lib.utils import jsonify |
|
46 | from rhodecode.lib.utils2 import safe_unicode | |
|
47 | from rhodecode.lib.utils2 import safe_unicode, safe_str | |
|
47 | 48 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator,\ |
|
48 | 49 | NotAnonymous |
|
49 | 50 | from rhodecode.lib.base import BaseRepoController, render |
@@ -101,10 +102,10 b' class SummaryController(BaseRepoControll' | |||
|
101 | 102 | 'pass': password, |
|
102 | 103 | 'scheme': parsed_url.scheme, |
|
103 | 104 | 'netloc': parsed_url.netloc, |
|
104 | 'path': decoded_path | |
|
105 | 'path': urllib.quote(safe_str(decoded_path)) | |
|
105 | 106 | } |
|
106 | 107 | |
|
107 | uri = uri_tmpl % uri_dict | |
|
108 | uri = (uri_tmpl % uri_dict) | |
|
108 | 109 | # generate another clone url by id |
|
109 | 110 | uri_dict.update( |
|
110 | 111 | {'path': decoded_path.replace(repo_name, '_%s' % c.dbrepo.repo_id)} |
@@ -116,8 +116,8 b'' | |||
|
116 | 116 | <label>${_('Clone url')}:</label> |
|
117 | 117 | </div> |
|
118 | 118 | <div class="input ${summary(c.show_stats)}"> |
|
119 | <input style="width:80%" type="text" id="clone_url" readonly="readonly" value="${c.clone_repo_url}"/> | |
|
120 | <input style="display:none;width:80%" type="text" id="clone_url_id" readonly="readonly" value="${c.clone_repo_url_id}"/> | |
|
119 | <input style="width:${'75%' if c.show_stats else '80%'}" type="text" id="clone_url" readonly="readonly" value="${c.clone_repo_url}"/> | |
|
120 | <input style="display:none;width:${'75%' if c.show_stats else '80%'}" type="text" id="clone_url_id" readonly="readonly" value="${c.clone_repo_url_id}"/> | |
|
121 | 121 | <div style="display:none" id="clone_by_name" class="ui-btn clone">${_('Show by Name')}</div> |
|
122 | 122 | <div id="clone_by_id" class="ui-btn clone">${_('Show by ID')}</div> |
|
123 | 123 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now