Added the download of a commit diff.

This fixes issue 50.
This commit is contained in:
Loic d'Anterroches
2008-11-25 20:11:09 +01:00
parent 6bee793704
commit 4dc0747769
3 changed files with 28 additions and 0 deletions

View File

@@ -31,6 +31,9 @@
<h2>{trans 'Change Details'}</h2>
{$diff.as_html()}
{aurl 'url', 'IDF_Views_Source::downloadDiff', array($project.shortname, $commit)}
<p class="right soft"><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/package-grey.png'}" alt="{trans 'Archive'}" align="bottom" /></a> <a href="{$url}">{trans 'Download the diff file'}</a></p>
{/if}
{/block}
{block context}