# HG changeset patch # User Thomas De Schampheleire # Date 2015-04-22 22:09:15 # Node ID 3105842da68f0eb22a74b045dca4103ff1cb8e30 # Parent 140f2811fc6fed0a7c158dec6cfe510cb9239853 changelog: use status label directly from c.statuses.get() output In the changelog template, c.statuses.get() returns a list: [ str(status), status_lbl, pr_id, pr_repo ] So to obtain the status label, one can directly use the second element, rather than using a helper function on the first. diff --git a/kallithea/templates/changelog/changelog.html b/kallithea/templates/changelog/changelog.html --- a/kallithea/templates/changelog/changelog.html +++ b/kallithea/templates/changelog/changelog.html @@ -89,11 +89,11 @@ ${self.repo_context_bar('changelog', c.f %if c.statuses.get(cs.raw_id):
%if c.statuses.get(cs.raw_id)[2]: - + %else: - + %endif