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