# HG changeset patch # User Angel Ezquerra # Date 2016-02-21 12:04:43 # Node ID b1bec568c0a26a9701d559dde0067867ba036c1c # Parent 494989b0ce724683221d02fde1bd0e90666cb4a9 summary, changelog: add reviewer username to status change tooltips Change the status change (circle) icon tooltips from "Changeset status: NEW_STATE" to "Changeset status: NEWSTATE by REVIEWER_USERNAME". This makes it much faster to check who is reviewing what and who approved or rejected what. diff --git a/kallithea/model/db.py b/kallithea/model/db.py --- a/kallithea/model/db.py +++ b/kallithea/model/db.py @@ -1418,7 +1418,8 @@ class Repository(Base, BaseModel): pr_nice_id = PullRequest.make_nice_id(pr_id) pr_repo = stat.pull_request.other_repo.repo_name grouped[stat.revision] = [str(stat.status), stat.status_lbl, - pr_id, pr_repo, pr_nice_id] + pr_id, pr_repo, pr_nice_id, + stat.author] return grouped def _repo_size(self): 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,12 @@ ${self.repo_context_bar('changelog', c.f %if c.statuses.get(cs.raw_id):
%if c.statuses.get(cs.raw_id)[2]: - + %else: - + %endif 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,11 +17,12 @@ %if c.statuses.get(cs.raw_id): %if c.statuses.get(cs.raw_id)[2]: - + %else: - + %endif