Show More
@@ -163,9 +163,9 b'' | |||||
163 |
|
163 | |||
164 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.db_repo.enable_locking: |
|
164 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.db_repo.enable_locking: | |
165 | %if c.db_repo.locked[0]: |
|
165 | %if c.db_repo.locked[0]: | |
166 |
<li>${h. |
|
166 | <li><a href="${h.url('toggle_locking', repo_name=c.repo_name)}"><i class="icon-lock"></i> ${_('Unlock')}</a></li> | |
167 | %else: |
|
167 | %else: | |
168 |
<li>${h. |
|
168 | <li><a href="${h.url('toggle_locking', repo_name=c.repo_name)}"><i class="icon-lock-open-alt"></i> ${_('Lock')}</li> | |
169 | %endif |
|
169 | %endif | |
170 | %endif |
|
170 | %endif | |
171 | ## TODO: this check feels wrong, it would be better to have a check for permissions |
|
171 | ## TODO: this check feels wrong, it would be better to have a check for permissions |
General Comments 0
You need to be logged in to leave comments.
Login now