Add “this Sone follows” section to “view Sone.”
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 04:38:42 +0000 (06:38 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 04:38:42 +0000 (06:38 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/viewSone.html

index 9428a76..4cfa70c 100644 (file)
@@ -73,6 +73,8 @@ Page.ViewSone.PostList.Title=Posts by “{sone}”
 Page.ViewSone.PostList.Text.NoPostYet=This Sone has not yet posted anything.
 Page.ViewSone.UnfollowSone.Text=Unfollow this Sone
 Page.ViewSone.FollowSone.Text=Follow this Sone
+Page.ViewSone.Following.Title=This Sone follows
+Page.ViewSone.Following.FollowingNone.Text=Apparently, this Sone does not yet follow any other Sone.
 
 Page.FollowSone.Title=Follow Sone - Sone
 
index ab87a98..db6b2dd 100644 (file)
                                <div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
                        <%/foreach>
                </div>
+               
+               <h1><%= Page.ViewSone.Following.Title|l10n|html></h1>
+               
+               <div id="following">
+                       <%foreach sone.friends friend>
+                               <%first>
+                                       <ul>
+                               <%/first>
+                                       <li><a href="viewSone.html?sone=<% friend.id>"><% friend.niceName|html></a> (<% friend.requestUri|html>)</li>
+                               <%last>
+                                       </ul>
+                               <%/last>
+                       <%foreachelse>
+                               <div><%= Page.ViewSone.Following.FollowingNone.Text|l10n|html></div>
+                       <%/foreach>
+               </div>
 
        <%/if>