Changeset - 460520415b67
[Not reviewed]
default
0 2 0
Thomas De Schampheleire - 10 years ago 2016-02-07 12:25:55
thomas.de.schampheleire@gmail.com
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.
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/model/pull_request.py
Show inline comments
 
@@ -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,
kallithea/templates/email_templates/pull_request.html
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)