From 58a5bc46d9982e8f87f6e39efed8f663834efe04 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 24 Feb 2011 13:38:42 +0100 Subject: [PATCH] Temporarily disable the change view and diff download for merge revisions until issue 581 has been fixed properly. --- src/IDF/templates/idf/source/commit.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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}