Merge "Clearer HTML email formatting"
This commit is contained in:
commit
04a3da35a6
@ -17,14 +17,13 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param coverLetter
|
||||
* @param email
|
||||
* @param fromName
|
||||
*/
|
||||
{template .AbandonedHtml autoescape="strict" kind="html"}
|
||||
<p>
|
||||
{$fromName} abandoned <strong>{$change.subject}</strong>.
|
||||
{$fromName} <strong>abandoned</strong> this change.
|
||||
</p>
|
||||
|
||||
{if $email.changeUrl}
|
||||
@ -34,6 +33,6 @@
|
||||
{/if}
|
||||
|
||||
{if $coverLetter}
|
||||
{call .Pre}{param content: $coverLetter /}{/call}
|
||||
<div style="white-space:pre-wrap">{$coverLetter}</div>
|
||||
{/if}
|
||||
{/template}
|
||||
|
@ -17,7 +17,6 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param commentFiles
|
||||
* @param coverLetter
|
||||
* @param email
|
||||
@ -44,7 +43,7 @@
|
||||
{/let}
|
||||
|
||||
<p>
|
||||
{$fromName} posted comments on <strong>{$change.subject}</strong>.
|
||||
{$fromName} <strong>posted comments</strong> on this change.
|
||||
</p>
|
||||
|
||||
{if $email.changeUrl}
|
||||
|
@ -17,19 +17,22 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param coverLetter
|
||||
* @param email
|
||||
* @param fromName
|
||||
*/
|
||||
{template .DeleteReviewerHtml autoescape="strict" kind="html"}
|
||||
<p>
|
||||
{$fromName} removed{sp}
|
||||
{foreach $reviewerName in $email.reviewerNames}
|
||||
{if not isFirst($reviewerName)},{sp}{/if}
|
||||
{$reviewerName}
|
||||
{/foreach}{sp}
|
||||
from <strong>{$change.subject}</strong>.
|
||||
{$fromName}{sp}
|
||||
<strong>
|
||||
removed{sp}
|
||||
{foreach $reviewerName in $email.reviewerNames}
|
||||
{if not isFirst($reviewerName)}
|
||||
{if isLast($reviewerName)}{sp}and{else},{/if}{sp}
|
||||
{/if}
|
||||
{$reviewerName}
|
||||
{/foreach}
|
||||
</strong>{sp}
|
||||
from this change.
|
||||
</p>
|
||||
|
||||
{if $email.changeUrl}
|
||||
@ -37,8 +40,4 @@
|
||||
{call .ViewChangeButton data="all" /}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $coverLetter}
|
||||
{call .Pre}{param content: $coverLetter /}{/call}
|
||||
{/if}
|
||||
{/template}
|
||||
|
@ -17,14 +17,13 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param coverLetter
|
||||
* @param email
|
||||
* @param fromName
|
||||
*/
|
||||
{template .DeleteVoteHtml autoescape="strict" kind="html"}
|
||||
<p>
|
||||
{$fromName} removed a vote from <strong>{$change.subject}</strong>.
|
||||
{$fromName} <strong>removed a vote</strong> from this change.
|
||||
</p>
|
||||
|
||||
{if $email.changeUrl}
|
||||
@ -34,6 +33,6 @@
|
||||
{/if}
|
||||
|
||||
{if $coverLetter}
|
||||
{call .Pre}{param content: $coverLetter /}{/call}
|
||||
<div style="white-space:pre-wrap">{$coverLetter}</div>
|
||||
{/if}
|
||||
{/template}
|
||||
|
@ -17,13 +17,12 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param email
|
||||
* @param fromName
|
||||
*/
|
||||
{template .MergedHtml autoescape="strict" kind="html"}
|
||||
<p>
|
||||
{$fromName} merged <strong>{$change.subject}</strong>.
|
||||
{$fromName} <strong>merged</strong> this change.
|
||||
</p>
|
||||
|
||||
{if $email.changeUrl}
|
||||
@ -32,9 +31,9 @@
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{call .Pre}{param content: $email.changeDetail /}{/call}
|
||||
<div style="white-space:pre-wrap">{$email.approvals}</div>
|
||||
|
||||
{call .Pre}{param content: $email.approvals /}{/call}
|
||||
{call .Pre}{param content: $email.changeDetail /}{/call}
|
||||
|
||||
{if $email.includeDiff}
|
||||
{call .Pre}{param content: $email.unifiedDiff /}{/call}
|
||||
|
@ -17,7 +17,6 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param email
|
||||
* @param fromName
|
||||
* @param patchSet
|
||||
@ -33,9 +32,9 @@
|
||||
{/if}
|
||||
{$reviewerName}
|
||||
{/foreach}{sp}
|
||||
to review <strong>{$change.subject}</strong>.
|
||||
to <strong>review</strong> this change.
|
||||
{else}
|
||||
{$fromName} uploaded <strong>{$change.subject}</strong> for review.
|
||||
{$fromName} uploaded this change for <strong>review</strong>.
|
||||
{/if}
|
||||
</p>
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param email
|
||||
* @param fromName
|
||||
* @param patchSet
|
||||
@ -25,8 +24,8 @@
|
||||
*/
|
||||
{template .ReplacePatchSetHtml autoescape="strict" kind="html"}
|
||||
<p>
|
||||
{$fromName} uploaded patch set #{$patchSet.patchSetId} to{sp}
|
||||
<strong>{$change.subject}</strong>.
|
||||
{$fromName} <strong>uploaded patch set #{$patchSet.patchSetId}</strong>{sp}
|
||||
to this change.
|
||||
</p>
|
||||
|
||||
{if $email.changeUrl}
|
||||
|
@ -17,14 +17,12 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param coverLetter
|
||||
* @param email
|
||||
* @param fromName
|
||||
*/
|
||||
{template .RestoredHtml autoescape="strict" kind="html"}
|
||||
<p>
|
||||
{$fromName} restored <strong>{$change.subject}</strong>.
|
||||
{$fromName} <strong>restored</strong> this change.
|
||||
</p>
|
||||
|
||||
{if $email.changeUrl}
|
||||
@ -32,8 +30,4 @@
|
||||
{call .ViewChangeButton data="all" /}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $coverLetter}
|
||||
{call .Pre}{param content: $coverLetter /}{/call}
|
||||
{/if}
|
||||
{/template}
|
||||
|
@ -17,14 +17,12 @@
|
||||
{namespace com.google.gerrit.server.mail.template}
|
||||
|
||||
/**
|
||||
* @param change
|
||||
* @param coverLetter
|
||||
* @param email
|
||||
* @param fromName
|
||||
*/
|
||||
{template .RevertedHtml autoescape="strict" kind="html"}
|
||||
<p>
|
||||
{$fromName} reverted the change: <strong>{$change.subject}</strong>.
|
||||
{$fromName} <strong>reverted</strong> this change.
|
||||
</p>
|
||||
|
||||
{if $email.changeUrl}
|
||||
@ -32,8 +30,4 @@
|
||||
{call .ViewChangeButton data="all" /}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $coverLetter}
|
||||
{call .Pre}{param content: $coverLetter /}{/call}
|
||||
{/if}
|
||||
{/template}
|
||||
|
Loading…
Reference in New Issue
Block a user