From: David ‘Bombe’ Roden Date: Tue, 19 Oct 2010 06:41:49 +0000 (+0200) Subject: Rename “isCurrent” property to “current”. X-Git-Tag: 0.1-RC1~204 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=dd3edaf932d073e2eacb14069a9f6136d516303d;p=Sone.git Rename “isCurrent” property to “current”. --- diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index 54a5a86..ee7d16d 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -33,7 +33,7 @@ import net.pterodactylus.util.template.ReflectionAccessor; *
Will return {@code true} if the sone in question is a friend of the * currently logged in Sone (as determined by accessing the “currentSone” * variable of the given {@link DataProvider}).
- *
isCurrent
+ *
current
*
Will return {@code true} if the sone in question is the currently logged * in Sone.
* @@ -53,7 +53,7 @@ public class SoneAccessor extends ReflectionAccessor { } else if (member.equals("friend")) { Sone currentSone = (Sone) dataProvider.getData("currentSone"); return currentSone.hasFriend(sone) ? true : null; - } else if (member.equals("isCurrent")) { + } else if (member.equals("current")) { Sone currentSone = (Sone) dataProvider.getData("currentSone"); return currentSone.equals(sone); } else if (member.equals("blocked")) { diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 9eb5925..7c0eb19 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -5,7 +5,7 @@
- <%if post.sone.isCurrent><%/if> + <%if post.sone.current><%/if>
<%foreach post.replies reply> @@ -16,7 +16,7 @@
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
- <%if reply.sone.isCurrent><%/if> + <%if reply.sone.current><%/if>
<%/foreach> diff --git a/src/main/resources/templates/include/viewSone.html b/src/main/resources/templates/include/viewSone.html index c75119a..a5debbc 100644 --- a/src/main/resources/templates/include/viewSone.html +++ b/src/main/resources/templates/include/viewSone.html @@ -2,7 +2,7 @@
(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)
<%ifnull ! currentSone> - <%if ! sone.isCurrent> + <%if ! sone.current> <%if sone.friend>
diff --git a/src/main/resources/templates/viewSone.html b/src/main/resources/templates/viewSone.html index 84c9c51..aad70ee 100644 --- a/src/main/resources/templates/viewSone.html +++ b/src/main/resources/templates/viewSone.html @@ -12,7 +12,7 @@

<%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html>

- <%if ! sone.isCurrent> + <%if ! sone.current> <%if sone.friend>
<%= Page.ViewSone.UnfollowSone.Text|l10n|html>
<%else>