Changeset - 2bb17f6f3044
[Not reviewed]
default
0 6 0
Mads Kiilerich - 11 years ago 2014-07-18 19:22:01
madski@unity3d.com
notifications: improve Email bodies - especially markup of URLs
6 files changed with 16 insertions and 26 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/email_templates/changeset_comment.html
Show inline comments
 
## -*- coding: utf-8 -*-
 
<%inherit file="main.html"/>
 

	
 
<p>${_('URL')}: <a href="${cs_comment_url}">${cs_comment_url}</a></p>
 

	
 
<h4>${_('%s commented on a %s changeset.') % (cs_comment_user,cs_target_repo) |n}</h4>
 
<p>${_('Comment from %s on %s changeset %s') % (cs_comment_user, cs_target_repo, h.short_id(raw_id))}:</p>
 
<p>${body}</p>
 

	
 
%if status_change:
 
    <p>${_('The changeset status was changed to')}: <b>${status_change}</b></p>
 
%endif
 
<p>${_('Comment')}:<br/>
 
${body}
 
</p>
 

	
 
<p>${_('URL')}: <a href="${cs_comment_url}">${cs_comment_url}</a></p>
 

	
 
<p>${_('Changeset')}: ${h.short_id(raw_id)}</p>
 
<p>${_('Description')}:<br/>
kallithea/templates/email_templates/main.html
Show inline comments
 
${self.body()}
 

	
 

	
 
<div>
 
--
 
<br/>
 
<br/>
 
<b>${_('This is a notification from Kallithea.')}</b>
 
</div>
 
--<br/>
 
${_("This is an automatic notification - don't reply to this mail.")}
kallithea/templates/email_templates/password_reset.html
Show inline comments
 
@@ -4,7 +4,5 @@
 
<h4>${_('Hello %s') % user}</h4>
 
<p>${_('We received a request to create a new password for your account.')}</p>
 
<p>${_('You can generate it by clicking following URL')}:</p>
 
<pre>
 
${reset_url}
 
</pre>
 
<p><a href="${reset_url}">${reset_url}</a></p>
 
<p>${_("Please ignore this email if you did not request a new password .")}</p>
kallithea/templates/email_templates/pull_request.html
Show inline comments
 
## -*- coding: utf-8 -*-
 
<%inherit file="main.html"/>
 

	
 
<p>${_('%s requested your review of %s pull request "%s"') % (pr_user_created, repo_name, pr_title)}</p>
 

	
 
<p>${_('URL')}: <a href="${pr_url}">${pr_url}</a></p>
 

	
 
<h4>${_('%s opened a pull request for repository %s and wants you to review changes.') % (pr_user_created,pr_repo_url) |n}</h4>
 

	
 
<p>${_('Title')}: <b>${pr_title}</b></p>
 
<p>${_('Description')}:</p>
 
<p style="white-space: pre-wrap;">${body}</p>
 

	
 
<p>${_('Changesets')}:</p>
 
<p style="white-space: pre-wrap;">
 
%for r,r_msg in pr_revisions:
 
<b>${h.short_id(r)}</b>:
 
<i>${h.short_id(r)}</i>:
 
${h.shorter(r_msg, 256)}
 

	
 
%endfor
kallithea/templates/email_templates/pull_request_comment.html
Show inline comments
 
## -*- coding: utf-8 -*-
 
<%inherit file="main.html"/>
 

	
 
<p>${_('URL')}: <a href="${pr_comment_url}">${pr_comment_url}</a></p>
 

	
 
<h4>${_('%s commented on pull request "%s"') % (pr_comment_user,pr_title) |n}</h4>
 
<p>${_('Comment from %s on %s pull request "%s"') % (pr_comment_user, repo_name, pr_title)}:</p>
 
<p>${body}</p>
 

	
 
%if status_change:
 
    %if closing_pr:
 
       <p>${_('Pull request was closed with status')}: <b>${status_change}</b></p>
 
       <p>${_('The comment closed the pull request with status')}: <b>${status_change}</b></p>
 
    %else:
 
       <p>${_('Pull request changed status')}: <b>${status_change}</b></p>
 
       <p>${_('The comment was made with status')}: <b>${status_change}</b></p>
 
    %endif
 
%endif
 

	
 
<p>${_('Comment')}:</p>
 
<p>${body}</p>
 
<p>${_('URL')}: <a href="${pr_comment_url}">${pr_comment_url}</a></p>
kallithea/templates/email_templates/registration.html
Show inline comments
 
@@ -3,4 +3,4 @@
 

	
 
${body}
 

	
 
${_('View this user here')}: ${registered_user_url}
 
${_('View this user here')}: <a href="${registered_user_url}">${registered_user_url}</a>
0 comments (0 inline, 0 general)