Mercurial > kallithea
changeset 5693:460520415b67
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.
author | Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> |
---|---|
date | Sun, 07 Feb 2016 12:25:55 +0100 |
parents | 52356a58c1f6 |
children | 994c28b137ee |
files | kallithea/model/pull_request.py kallithea/templates/email_templates/pull_request.html |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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 @@ <p>${_('Changesets')}:</p> <p style="white-space: pre-wrap;"> %for r,r_msg in pr_revisions: -<i>${h.short_id(r)}</i>: +<i><a href="${h.canonical_url('changeset_home', repo_name=org_repo_name, revision=r)}">${h.short_id(r)}</a></i>: ${h.shorter(r_msg, 256)} %endfor