[PATCH 2 of 4] changelog_summary: show changeset status label rather than raw status
Thomas De Schampheleire
patrickdepinguin at gmail.com
Sat Apr 25 14:33:30 EDT 2015
# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1429733411 -7200
# Wed Apr 22 22:10:11 2015 +0200
# Node ID dc58eab8ff5070ab035f53fc241c924dd9aae3fb
# Parent a75073e256b55dcb73310ab47a798125f5c63e81
changelog_summary: show changeset status label rather than raw status
Instead of showing the changeset status as e.g. under_review, use 'Under
Review', like all other similar code.
diff --git a/kallithea/templates/changelog/changelog_summary_data.html b/kallithea/templates/changelog/changelog_summary_data.html
--- a/kallithea/templates/changelog/changelog_summary_data.html
+++ b/kallithea/templates/changelog/changelog_summary_data.html
@@ -17,7 +17,7 @@
%if c.statuses.get(cs.raw_id):
<div class="changeset-status-ico shortlog">
%if c.statuses.get(cs.raw_id)[2]:
- <a class="tooltip" title="${_('Changeset status: %s\nClick to open associated pull request #%s') % (c.statuses.get(cs.raw_id)[0], c.statuses.get(cs.raw_id)[2])}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
+ <a class="tooltip" title="${_('Changeset status: %s\nClick to open associated pull request #%s') % (c.statuses.get(cs.raw_id)[1], c.statuses.get(cs.raw_id)[2])}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
<i class="icon-circle changeset-status-${c.statuses.get(cs.raw_id)[0]}"></i>
</a>
%else:
More information about the kallithea-general
mailing list