# HG changeset patch # User Thomas De Schampheleire # Date 1454844355 -3600 # 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 -r 52356a58c1f6 -r 460520415b67 kallithea/model/pull_request.py --- a/kallithea/model/pull_request.py Sat Jan 30 16:38:26 2016 +0100 +++ b/kallithea/model/pull_request.py Sun Feb 07 12:25:55 2016 +0100 @@ -149,6 +149,7 @@ '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 -r 52356a58c1f6 -r 460520415b67 kallithea/templates/email_templates/pull_request.html --- a/kallithea/templates/email_templates/pull_request.html Sat Jan 30 16:38:26 2016 +0100 +++ b/kallithea/templates/email_templates/pull_request.html Sun Feb 07 12:25:55 2016 +0100 @@ -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