Rename “isBlocked” property to “blocked”.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 06:39:11 +0000 (08:39 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 06:39:11 +0000 (08:39 +0200)
src/main/java/net/pterodactylus/sone/template/SoneAccessor.java
src/main/resources/templates/include/viewSone.html

index dc4c0ab..97cf327 100644 (file)
@@ -56,7 +56,7 @@ public class SoneAccessor extends ReflectionAccessor {
                } else if (member.equals("isCurrent")) {
                        Sone currentSone = (Sone) dataProvider.getData("currentSone");
                        return currentSone.equals(sone);
-               } else if (member.equals("isBlocked")) {
+               } else if (member.equals("blocked")) {
                        Sone currentSone = (Sone) dataProvider.getData("currentSone");
                        return currentSone.isSoneBlocked(sone.getId());
                }
index cecbb33..57ab384 100644 (file)
@@ -16,7 +16,7 @@
                                        <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
                                </form>
                        <%/if>
-                       <%if sone.isBlocked>
+                       <%if sone.blocked>
                                <form class="unblock" action="unblockSone.html" method="post">
                                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                        <input type="hidden" name="sone" value="<% sone.id>" />