From dd3edaf932d073e2eacb14069a9f6136d516303d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 19 Oct 2010 08:41:49 +0200 Subject: [PATCH] =?utf8?q?Rename=20=E2=80=9CisCurrent=E2=80=9D=20property?= =?utf8?q?=20to=20=E2=80=9Ccurrent=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/template/SoneAccessor.java | 4 ++-- src/main/resources/templates/include/viewPost.html | 4 ++-- src/main/resources/templates/include/viewSone.html | 2 +- src/main/resources/templates/viewSone.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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> -- 2.7.4