# HG changeset patch # User Marcin Kuzminski # Date 2012-10-17 21:27:46 # Node ID 19ea3e16f65b71b84774fc1839af8b6d5a308c1b # Parent 4c7cc3a4c3306de1befe3cba22d02e55894cd3d6 add locking state icon into summary page diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -3115,6 +3115,26 @@ table.code-browser .submodule-dir { 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 --git a/rhodecode/templates/summary/summary.html b/rhodecode/templates/summary/summary.html --- a/rhodecode/templates/summary/summary.html +++ b/rhodecode/templates/summary/summary.html @@ -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')}