aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2012-03-03 15:20:16 -0500
committerAntoine Beaupré <anarcat@koumbit.org>2012-07-19 10:21:22 -0400
commitda53c5d505bb7b30940339bc2e3ae6604e91c861 (patch)
tree6f305b5b49ee38acb9e2ce65402e1feeb4d96978
parentbfc9dc93c9f64a9acfff4683b69995d5a0edb0ea (diff)
downloadikiwiki-da53c5d505bb7b30940339bc2e3ae6604e91c861.tar
ikiwiki-da53c5d505bb7b30940339bc2e3ae6604e91c861.tar.gz
make diffs toggleable
-rw-r--r--templates/change.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/change.tmpl b/templates/change.tmpl
index d7ec90875..3fa327481 100644
--- a/templates/change.tmpl
+++ b/templates/change.tmpl
@@ -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>