Fixed issue 93 by preventing the display of a large commit diff.

Still needs to implement the equivalent for subversion and mercurial,
maybe with a simple command $scm->isCommitLarge($commit).
This commit is contained in:
Loic d'Anterroches
2009-01-17 18:46:26 +01:00
parent 61bc7a70b6
commit 835eab9c24
5 changed files with 66 additions and 2 deletions

View File

@@ -31,10 +31,11 @@
<h2>{trans 'Change Details'}</h2>
{$diff.as_html()}
{/if}{if count($diff.files) or $large_commit}
{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 corresponding diff file'}</a></p>
{/if}
{/block}
{block context}
{if $scm == 'git'}