# HG changeset patch # User Thomas De Schampheleire # Date 2016-02-07 12:25:55 # Node ID 460520415b67b03756f325ed2709f5879be505ef # Parent 52356a58c1f6a828eb64f8236ce50dbc830afbe2 pullrequest: linkify changesets in html notification email to reviewers Make it possible to open a given changeset immediately, instead of having to go to the pullrequest first. diff --git a/kallithea/model/pull_request.py b/kallithea/model/pull_request.py --- a/kallithea/model/pull_request.py +++ b/kallithea/model/pull_request.py @@ -149,6 +149,7 @@ class PullRequestModel(BaseModel): 'pr_url': pr_url, 'pr_revisions': revision_data, 'repo_name': pr.other_repo.repo_name, + 'org_repo_name': pr.org_repo.repo_name, 'pr_nice_id': pr.nice_id(), 'ref': org_ref_name, 'pr_username': user.username, diff --git a/kallithea/templates/email_templates/pull_request.html b/kallithea/templates/email_templates/pull_request.html --- a/kallithea/templates/email_templates/pull_request.html +++ b/kallithea/templates/email_templates/pull_request.html @@ -15,7 +15,7 @@

${_('Changesets')}:

%for r,r_msg in pr_revisions: -${h.short_id(r)}: +${h.short_id(r)}: ${h.shorter(r_msg, 256)} %endfor