# HG changeset patch # User Marcin Kuzminski # Date 1336251583 -7200 # Node ID 493e03a4d2688cd02841da95c5f5616886e0bc5e # Parent 09fd90d91b6afdd823080d1929a67b8bdc4d49cd added changeset status into changelog view diff -r 09fd90d91b6a -r 493e03a4d268 rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py Sat May 05 22:22:53 2012 +0200 +++ b/rhodecode/lib/helpers.py Sat May 05 22:59:43 2012 +0200 @@ -334,7 +334,7 @@ #============================================================================== from rhodecode.lib.vcs.utils import author_name, author_email from rhodecode.lib.utils2 import credentials_filter, age as _age -from rhodecode.model.db import User +from rhodecode.model.db import User, ChangesetStatus age = lambda x: _age(x) capitalize = lambda x: x.capitalize() @@ -943,3 +943,7 @@ def changeset_status(repo, revision): return ChangesetStatusModel().get_status(repo, revision) + + +def changeset_status_lbl(changeset_status): + return dict(ChangesetStatus.STATUSES).get(changeset_status) diff -r 09fd90d91b6a -r 493e03a4d268 rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css Sat May 05 22:22:53 2012 +0200 +++ b/rhodecode/public/css/style.css Sat May 05 22:59:43 2012 +0200 @@ -2453,11 +2453,25 @@ float:right; height:14px; } +.code-header .changeset-status-container{ + float:left; + padding:2px 0px 0px 2px; +} .right .changeset-status-container .changeset-status-lbl{ color: rgb(136, 136, 136); float: left; padding: 0px 4px 0px 0px; } +.code-header .changeset-status-container .changeset-status-lbl{ + float: left; + padding: 0px 4px 0px 0px; +} +.right .changeset-status-container .changeset-status-ico{ + float: left; +} +.code-header .changeset-status-container .changeset-status-ico{ + float: left; +} .right .comments-container{ padding-right: 5px; margin-top:1px; diff -r 09fd90d91b6a -r 493e03a4d268 rhodecode/templates/changelog/changelog.html --- a/rhodecode/templates/changelog/changelog.html Sat May 05 22:22:53 2012 +0200 +++ b/rhodecode/templates/changelog/changelog.html Sat May 05 22:59:43 2012 +0200 @@ -77,8 +77,8 @@
%if c.statuses.get(cs.raw_id): - -
${c.statuses.get(cs.raw_id)[1]}
+
${c.statuses.get(cs.raw_id)[1]}
+
%endif
diff -r 09fd90d91b6a -r 493e03a4d268 rhodecode/templates/changeset/changeset.html --- a/rhodecode/templates/changeset/changeset.html Sat May 05 22:22:53 2012 +0200 +++ b/rhodecode/templates/changeset/changeset.html Sat May 05 22:59:43 2012 +0200 @@ -33,6 +33,12 @@
${c.changeset.date}
+
+ %if c.statuses: +
[${h.changeset_status_lbl(c.statuses[0])}]
+
+ %endif +