Add “follow all Sones” and “unfollow all Sones” buttons.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 1 Jul 2011 05:08:13 +0000 (07:08 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 1 Jul 2011 05:08:13 +0000 (07:08 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/knownSones.html

index 4bcd975..2277936 100644 (file)
@@ -83,6 +83,8 @@ Page.Index.PostList.Text.NoPostYet=Nobody has written any posts yet. You should
 Page.KnownSones.Title=Known Sones - Sone
 Page.KnownSones.Page.Title=Known Sones
 Page.KnownSones.Text.NoKnownSones=There are currently no known Sones.
+Page.KnownSones.Button.FollowAllSones=Follow all Sones
+Page.KnownSones.Button.UnfollowAllSones=Unfollow all Sones
 
 Page.EditProfile.Title=Edit Profile - Sone
 Page.EditProfile.Page.Title=Edit Profile
index d3f4846..260a321 100644 (file)
                </form>
        </div>
 
+       <div>
+               <form action="followSone.html" method="post">
+                       <input type="hidden" name="formPassword" value="<%formPassword|html>" />
+                       <input type="hidden" name="returnPage" value="<%request.uri|html>" />
+                       <input type="hidden" name="sone" value="<%foreach pagination.items sone><%if !sone.friend><%if !sone.current><%sone.id> <%/if><%/if><%/foreach>" />
+                       <button type="submit"><%= Page.KnownSones.Button.FollowAllSones|l10n|html></button>
+               </form>
+       </div>
+
+       <div>
+               <form action="unfollowSone.html" method="post">
+                       <input type="hidden" name="formPassword" value="<%formPassword|html>" />
+                       <input type="hidden" name="returnPage" value="<%request.uri|html>" />
+                       <input type="hidden" name="sone" value="<%foreach pagination.items sone><%if sone.friend><%sone.id> <%/if><%/foreach>" />
+                       <button type="submit"><%= Page.KnownSones.Button.UnfollowAllSones|l10n|html></button>
+               </form>
+       </div>
+
        <div id="known-sones">
                <%= page|store key=pageParameter>
                <%include include/pagination.html>