diff --git a/src/IDF/templates/idf/issues/issue-created-email.txt b/src/IDF/templates/idf/issues/issue-created-email.txt index cd635ae..013fa54 100644 --- a/src/IDF/templates/idf/issues/issue-created-email.txt +++ b/src/IDF/templates/idf/issues/issue-created-email.txt @@ -7,6 +7,7 @@ to you:{/blocktrans} {trans 'Project:'} {$project.name|safe} {trans 'Status:'} {$issue.get_status.name|safe} {trans 'Reported by:'} {$issue.get_submitter|safe} +{if $issue.due_dtime}{trans 'Due date:'} {$issue.due_dtime|safe}{/if} {assign $tags = $issue.get_tags_list()}{if $tags.count()}{trans 'Labels:'} {foreach $tags as $tag} {$tag.class|safe}:{$tag.name|safe} {/foreach}{/if} diff --git a/src/IDF/templates/idf/issues/issue-updated-email.txt b/src/IDF/templates/idf/issues/issue-updated-email.txt index 3597dec..9b9ccbc 100644 --- a/src/IDF/templates/idf/issues/issue-updated-email.txt +++ b/src/IDF/templates/idf/issues/issue-updated-email.txt @@ -6,6 +6,7 @@ {trans 'Project:'} {$project.name|safe} {trans 'Status:'} {$issue.get_status.name} {trans 'Reported by:'} {$issue.get_submitter|safe} +{if $issue.due_dtime}{trans 'Due date:'} {$issue.due_dtime|safe}{/if} {trans 'URL:'} {$url_base}{url 'IDF_Views_Issue::view', array($project.shortname, $issue.id)} {assign $tags = $issue.get_tags_list()}{if $tags.count()}{trans 'Labels:'} {foreach $tags as $tag} {$tag.class|safe}:{$tag.name|safe} @@ -16,7 +17,7 @@ {if strlen($c.content) > 0}{$c.content|safe}{/if}{if $c.changedIssue()} {foreach $c.changes as $w => $v} - {if $w == 'su'}{trans 'Summary:'}{/if}{if $w == 'st'}{trans 'Status:'}{/if}{if $w == 'ow'}{trans 'Owner:'}{/if}{if $w == 'lb'}{trans 'Labels:'}{/if}{if $w == 'rel'}{trans 'Relations:'}{/if} {if $w == 'lb' or $w == 'rel'}{foreach $v as $t => $ls}{foreach $ls as $l}{if $t == 'rem'}-{/if}{$l} {/foreach}{/foreach}{else}{$v}{/if}{/foreach}{/if}{assign $attachments = $c.get_attachment_list()}{if $attachments.count() > 0} + {if $w == 'su'}{trans 'Summary:'}{/if}{if $w == 'st'}{trans 'Status:'}{/if}{if $w == 'ow'}{trans 'Owner:'}{/if}{if $w == 'du'}{trans 'Due date:'}{/if}{if $w == 'lb'}{trans 'Labels:'}{/if}{if $w == 'rel'}{trans 'Relations:'}{/if} {if $w == 'lb' or $w == 'rel'}{foreach $v as $t => $ls}{foreach $ls as $l}{if $t == 'rem'}-{/if}{$l} {/foreach}{/foreach}{else}{$v}{/if}{/foreach}{/if}{assign $attachments = $c.get_attachment_list()}{if $attachments.count() > 0} {trans 'Attachments:'}{foreach $attachments as $a} - {$a.filename|safe} - {$a.filesize|ssize}