From 70507fff8a12cc5c66df15ff2c3585c8bc5f7b3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 18 Oct 2010 20:38:29 +0200 Subject: [PATCH] Only show block/unblock buttons if the user is logged in. --- src/main/resources/templates/knownSones.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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> -- 2.7.4