Mercurial > kallithea
changeset 4878:7f8f576dc0b5
base: add missing lock and unlock icons
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 25 Feb 2015 13:17:37 -0800 |
parents | 42fa6e7536d1 |
children | 599fba9967a4 |
files | kallithea/templates/base/base.html |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/base/base.html Wed Feb 25 11:39:59 2015 -0800 +++ b/kallithea/templates/base/base.html Wed Feb 25 13:17:37 2015 -0800 @@ -163,9 +163,9 @@ %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.db_repo.enable_locking: %if c.db_repo.locked[0]: - <li>${h.link_to(_('Unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li> + <li><a href="${h.url('toggle_locking', repo_name=c.repo_name)}"><i class="icon-lock"></i> ${_('Unlock')}</a></li> %else: - <li>${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> + <li><a href="${h.url('toggle_locking', repo_name=c.repo_name)}"><i class="icon-lock-open-alt"></i> ${_('Lock')}</li> %endif %endif ## TODO: this check feels wrong, it would be better to have a check for permissions