diff --git a/src/IDF/templates/idf/source/commit.html b/src/IDF/templates/idf/source/commit.html index e07d373..b276d03 100644 --- a/src/IDF/templates/idf/source/commit.html +++ b/src/IDF/templates/idf/source/commit.html @@ -23,7 +23,7 @@ {/if} {trans 'Message:'}{issuetext $cobject.title, $request}{if isset($cobject.full_message)}

{issuetext $cobject.full_message, $request, true, false, true, true, true}{/if} -{if count($changes)} +{if count($cobject.parents) < 2 and count($changes)} {trans 'Changes:'} @@ -61,11 +61,13 @@ {/if} {* End of the if count($changes) *} -{if count($diff.files)} +{if count($cobject.parents) < 2 and count($diff.files)}

{trans 'File differences'}

{$diff.as_html()} -{/if}{if count($diff.files) or $large_commit} +{/if} + +{if count($cobject.parents) < 2 and (count($diff.files) or $large_commit)} {aurl 'url', 'IDF_Views_Source::downloadDiff', array($project.shortname, $commit)}

{trans 'Archive'} {trans 'Download the corresponding diff file'}

{/if}