Fixed ticket 76, add the attached files in the issue notification emails.
Beware that you need to update your configuration file to add the new template filter.
This commit is contained in:
parent
81cb427f7f
commit
57a4ea7cb0
@ -446,3 +446,8 @@ function IDF_Views_Source_PrettySize($size)
|
||||
Pluf_Utils::prettySize($size)));
|
||||
}
|
||||
|
||||
function IDF_Views_Source_PrettySizeSimple($size)
|
||||
{
|
||||
return Pluf_Utils::prettySize($size);
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,7 @@ $cfg['template_tags'] = array(
|
||||
);
|
||||
$cfg['template_modifiers'] = array(
|
||||
'size' => 'IDF_Views_Source_PrettySize',
|
||||
'ssize' => 'IDF_Views_Source_PrettySizeSimple',
|
||||
);
|
||||
|
||||
# available languages
|
||||
|
@ -12,7 +12,11 @@ to you:{/blocktrans}
|
||||
{/foreach}{/if}
|
||||
{trans 'Description:'}
|
||||
|
||||
{$comment.content|safe}
|
||||
|
||||
{$comment.content|safe}{assign $attachments = $comment.get_attachment_list()}
|
||||
{if $attachments.count() > 0}
|
||||
{trans 'Attachments:'}{foreach $attachments as $a}
|
||||
- {$a.filename|safe} - {$a.filesize|ssize}
|
||||
{$url_base}{url 'IDF_Views_Issue::getAttachment', array($project.shortname, $a.id, $a.filename)}{/foreach}
|
||||
{/if}
|
||||
--
|
||||
{trans 'Issue:'} {$url_base}{url 'IDF_Views_Issue::view', array($project.shortname, $issue.id)}
|
||||
|
@ -16,7 +16,12 @@
|
||||
|
||||
{if strlen($c.content) > 0}{$c.content|safe}{else}{trans '(No comments were given for this change.)'}{/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 == 'lb'}{assign $l = implode(', ', $v)}{$l}{else}{$v}{/if}{/foreach}{/if}
|
||||
{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 == 'lb'}{assign $l = implode(', ', $v)}{$l}{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}
|
||||
{$url_base}{url 'IDF_Views_Issue::getAttachment', array($project.shortname, $a.id, $a.filename)}{/foreach}
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user