]> ruin.nu Git - ndwebbie.git/commitdiff
Don't show edit link on history page unless you have edit access
authorMichael Andreen <harv@ruin.nu>
Wed, 13 Aug 2008 06:39:31 +0000 (08:39 +0200)
committerMichael Andreen <harv@ruin.nu>
Wed, 13 Aug 2008 06:39:31 +0000 (08:39 +0200)
root/src/wiki/history.tt2

index ba63a53ee354deed0558491f7c6ca8c3a6ebc770..c5270f15e620a476348257e262b98a8310aad20b 100644 (file)
@@ -17,4 +17,4 @@
 </table>
 
 <hr>
-<a href="[% c.uri_for('edit',name) %]">Edit this page</a>
+[% IF page.edit %]<a href="[% c.uri_for('edit',page.fullname) %]">Edit this page</a>[% END %]