From: David ‘Bombe’ Roden Date: Mon, 18 Oct 2010 18:38:29 +0000 (+0200) Subject: Only show block/unblock buttons if the user is logged in. X-Git-Tag: 0.1-RC1~226 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=70507fff8a12cc5c66df15ff2c3585c8bc5f7b3b Only show block/unblock buttons if the user is logged in. --- diff --git a/src/main/resources/templates/knownSones.html b/src/main/resources/templates/knownSones.html index a0b270a..9cf616c 100644 --- a/src/main/resources/templates/knownSones.html +++ b/src/main/resources/templates/knownSones.html @@ -7,18 +7,20 @@
(<% sone.requestUri|html>)
- <%if sone.isBlocked> -
- - - -
- <%else> -
- - - -
+ <%ifnull ! currentSone> + <%if sone.isBlocked> +
+ + + +
+ <%else> +
+ + + +
+ <%/if> <%/if>
<%foreachelse>