make diffs toggleable
authorAntoine Beaupré <anarcat@koumbit.org>
Sat, 3 Mar 2012 20:20:16 +0000 (15:20 -0500)
committerAntoine Beaupré <anarcat@koumbit.org>
Thu, 19 Jul 2012 14:21:22 +0000 (10:21 -0400)
templates/change.tmpl

index d7ec9087534af331eb53ee1c4f9ab6f786a76e6f..3fa327481f23567ce2a3a4e98e82063bc65f35b7 100644 (file)
@@ -28,6 +28,9 @@
 <span class="changedate"><TMPL_VAR COMMITDATE></span>
 <span class="desc"><br /></span>
 <TMPL_IF REVERTURL><span class="revert">
+<TMPL_IF DIFF>
+<a href="#diff-<TMPL_VAR REV>" class="toggle" title="revert" rel="nofollow">[[diff|wikiicons/diff.png]]</a>
+</TMPL_IF>
 <a href="<TMPL_VAR REVERTURL>" title="revert" rel="nofollow">[[revert|wikiicons/revert.png]]</a>
 </span></TMPL_IF>
 </div>
@@ -39,7 +42,7 @@
 </TMPL_LOOP>
 </div>
 <TMPL_IF DIFF>
-<div class="diff">
+<div class="toggleable" id="diff-<TMPL_VAR REV>">
 <pre>
 <TMPL_VAR DIFF>
 </pre>