Indefero

Indefero Commit Details


Date:2008-11-30 03:52:06 (16 years 22 days ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:57a4ea7cb034522a708a338e2d701b5014bf2716
Parents: 81cb427f7f65c95ffc1d5a1a7a64e84074cd3888
Message: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.
Changes:

File differences

src/IDF/Views/Source.php
446446
447447
448448
449
450
451
452
453
Pluf_Utils::prettySize($size)));
}
function IDF_Views_Source_PrettySizeSimple($size)
{
return Pluf_Utils::prettySize($size);
}
src/IDF/conf/idf.php-dist
187187
188188
189189
190
190191
191192
192193
);
$cfg['template_modifiers'] = array(
'size' => 'IDF_Views_Source_PrettySize',
'ssize' => 'IDF_Views_Source_PrettySizeSimple',
);
# available languages
src/IDF/templates/idf/issues/issue-created-email.txt
1212
1313
1414
15
16
15
16
17
18
19
20
1721
1822
{/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)}
src/IDF/templates/idf/issues/issue-updated-email.txt
1616
1717
1818
19
19
20
21
22
23
24
2025
2126
2227
{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}

Archive Download the corresponding diff file

Page rendered in 0.07884s using 14 queries.