# HG changeset patch # User Marcin Kuzminski # Date 1350502066 -7200 # Node ID 19ea3e16f65b71b84774fc1839af8b6d5a308c1b # Parent 4c7cc3a4c3306de1befe3cba22d02e55894cd3d6 add locking state icon into summary page diff -r 4c7cc3a4c330 -r 19ea3e16f65b rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css Wed Oct 17 21:13:04 2012 +0200 +++ b/rhodecode/public/css/style.css Wed Oct 17 21:27:46 2012 +0200 @@ -3115,6 +3115,26 @@ margin-top: 2px; } +.locking_locked{ + background: #FFF url("../images/icons/block_16.png") no-repeat scroll 3px; + height: 16px; + width: 20px; + cursor: pointer; + display: block; + float: right; + margin-top: 2px; +} + +.locking_unlocked{ + background: #FFF url("../images/icons/accept.png") no-repeat scroll 3px; + height: 16px; + width: 20px; + cursor: pointer; + display: block; + float: right; + margin-top: 2px; +} + .currently_following { padding-left: 10px; padding-bottom: 5px; diff -r 4c7cc3a4c330 -r 19ea3e16f65b rhodecode/templates/summary/summary.html --- a/rhodecode/templates/summary/summary.html Wed Oct 17 21:13:04 2012 +0200 +++ b/rhodecode/templates/summary/summary.html Wed Oct 17 21:27:46 2012 +0200 @@ -54,15 +54,24 @@ %if c.rhodecode_user.username != 'default': %if c.following: - %else: - %endif %endif: + + ## locking icon + %if c.rhodecode_db_repo.enable_locking: + %if c.rhodecode_db_repo.locked[0]: + + %else: + + %endif + %endif ##REPO TYPE %if h.is_hg(c.dbrepo): ${_('Mercurial repository')}