Show More
@@ -1166,7 +1166,7 b' class Repository(Base, BaseModel):' | |||
|
1166 | 1166 | """ |
|
1167 | 1167 | Mark caches of this repo as invalid. |
|
1168 | 1168 | """ |
|
1169 |
CacheInvalidation.set_invalidate( |
|
|
1169 | CacheInvalidation.set_invalidate(self.repo_name) | |
|
1170 | 1170 | |
|
1171 | 1171 | def scm_instance_no_cache(self): |
|
1172 | 1172 | return self.__get_instance() |
@@ -105,8 +105,7 b' class CachedRepoList(object):' | |||
|
105 | 105 | scmr = dbr.scm_instance_cached(cache_map) |
|
106 | 106 | # check permission at this level |
|
107 | 107 | if not HasRepoPermissionAny( |
|
108 | *self.perm_set | |
|
109 | )(dbr.repo_name, 'get repo check'): | |
|
108 | *self.perm_set)(dbr.repo_name, 'get repo check'): | |
|
110 | 109 | continue |
|
111 | 110 | |
|
112 | 111 | try: |
@@ -151,8 +150,7 b' class SimpleCachedRepoList(CachedRepoLis' | |||
|
151 | 150 | for dbr in self.db_repo_list: |
|
152 | 151 | # check permission at this level |
|
153 | 152 | if not HasRepoPermissionAny( |
|
154 | *self.perm_set | |
|
155 | )(dbr.repo_name, 'get repo check'): | |
|
153 | *self.perm_set)(dbr.repo_name, 'get repo check'): | |
|
156 | 154 | continue |
|
157 | 155 | |
|
158 | 156 | tmp_d = {} |
@@ -247,6 +247,7 b' ul#context-actions {' | |||
|
247 | 247 | border-left: 1px solid rgba(255,255,255,0.1); |
|
248 | 248 | padding: 0; |
|
249 | 249 | } |
|
250 | ||
|
250 | 251 | #header #header-inner #quick li:last-child, |
|
251 | 252 | #content #context-pages li:last-child { |
|
252 | 253 | border-right: none; |
@@ -275,7 +275,7 b'' | |||
|
275 | 275 | ${h.submit('set_unlock' ,_('Unlock locked repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to unlock repository')+"');")} |
|
276 | 276 | ${'Locked by %s on %s' % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} |
|
277 | 277 | %else: |
|
278 |
${h.submit('set_lock',_(' |
|
|
278 | ${h.submit('set_lock',_('Lock repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to lock repository')+"');")} | |
|
279 | 279 | ${_('Repository is not locked')} |
|
280 | 280 | %endif |
|
281 | 281 | </div> |
@@ -293,7 +293,7 b'' | |||
|
293 | 293 | <div class="form"> |
|
294 | 294 | <div class="fields"> |
|
295 | 295 | ${h.select('id_fork_of','',c.repos_list,class_="medium")} |
|
296 |
${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_(' |
|
|
296 | ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="ui-btn",)} | |
|
297 | 297 | </div> |
|
298 | 298 | <div class="field" style="border:none;color:#888"> |
|
299 | 299 | <ul> |
@@ -78,7 +78,7 b'' | |||
|
78 | 78 | </div> |
|
79 | 79 | <div class="field"> |
|
80 | 80 | <div class="label-summary"> |
|
81 |
<label>${_(' |
|
|
81 | <label>${_('Description')}:</label> | |
|
82 | 82 | </div> |
|
83 | 83 | <div class="input"> |
|
84 | 84 | <div style="white-space:pre-wrap">${h.literal(c.pull_request.description)}</div> |
@@ -148,7 +148,7 b' window.onhashchange = function() {' | |||
|
148 | 148 | %else: |
|
149 | 149 | ${_('Statistics are disabled for this repository')} |
|
150 | 150 | %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): |
|
151 |
${h.link_to(_(' |
|
|
151 | ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-btn")} | |
|
152 | 152 | %endif |
|
153 | 153 | %endif |
|
154 | 154 | </div> |
@@ -164,7 +164,7 b' window.onhashchange = function() {' | |||
|
164 | 164 | %elif not c.enable_downloads: |
|
165 | 165 | ${_('Downloads are disabled for this repository')} |
|
166 | 166 | %if h.HasPermissionAll('hg.admin')('enable downloads on from summary'): |
|
167 |
${h.link_to(_(' |
|
|
167 | ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-btn")} | |
|
168 | 168 | %endif |
|
169 | 169 | %else: |
|
170 | 170 | ${h.select('download_options',c.rhodecode_repo.get_changeset().raw_id,c.download_options)} |
General Comments 0
You need to be logged in to leave comments.
Login now