]> sipb.mit.edu Git - ikiwiki.git/blobdiff - templates/change.tmpl
really fix diff display to not show both types of diff
[ikiwiki.git] / templates / change.tmpl
index 2b7b058c06151b67a067ce77bca8aad6236d80da..989315a8d0a9e38a1d3087f7ee14239c89cb4d43 100644 (file)
@@ -9,9 +9,11 @@
 <div id="change-<TMPL_VAR REV>" class="metadata">
 <span class="desc"><br />Changed pages:</span>
 <span class="pagelinks">
+<TMPL_UNLESS HAS_DIFFURL>
 <TMPL_IF DIFF>
 <a href="#diff-<TMPL_VAR REV>" class="toggle" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a>
 </TMPL_IF>
+</TMPL_UNLESS>
 <TMPL_LOOP PAGES>
 <TMPL_IF DIFFURL><a href="<TMPL_VAR DIFFURL>" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a><TMPL_VAR LINK>
 <TMPL_ELSE><TMPL_VAR LINK></TMPL_IF>
@@ -41,7 +43,7 @@
 </TMPL_IF>
 </TMPL_LOOP>
 </div>
-<TMPL_UNLESS DIFFURL>
+<TMPL_UNLESS HAS_DIFFURL>
 <TMPL_IF DIFF>
 <div class="toggleable" id="diff-<TMPL_VAR REV>">
 <pre>