Include albums in a Sone’s profile.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 05:56:08 +0000 (07:56 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 05:56:08 +0000 (07:56 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/viewSone.html

index a5f423e..5f0a9ee 100644 (file)
@@ -136,6 +136,7 @@ Page.ViewSone.PostList.Title=Posts by {sone}
 Page.ViewSone.PostList.Text.NoPostYet=This Sone has not yet posted anything.
 Page.ViewSone.Profile.Title=Profile
 Page.ViewSone.Profile.Label.Name=Name
+Page.ViewSone.Profile.Label.Albums=Albums
 Page.ViewSone.Replies.Title=Replies to Posts
 
 Page.ViewPost.Title=View Post - Sone
index 066adef..87cf400 100644 (file)
                                <div class="value"><a href="/WebOfTrust/ShowIdentity?id=<% sone.id|html>"><% sone.niceName|html></a></div>
                        </div>
 
+                       <%foreach sone.albums album>
+                               <%first>
+                                       <div class="profile-field">
+                                               <div class="name"><%= Page.ViewSone.Profile.Label.Albums|l10n|html></div>
+                                               <div class="value">
+                               <%/first>
+                                       <a href="imageBrowser.html?album=<%album.id|html>"><%album.title|html></a><%notlast>, <%/notlast>
+                               <%last>
+                                               </div>
+                                       </div>
+                               <%/last>
+                       <%/foreach>
+
                        <%foreach sone.profile.fields field>
                                <div class="profile-field">
                                        <div class="name"><% field.name|html></div>