Show links to all albums in the Sone context menu.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 21 Sep 2011 09:26:23 +0000 (11:26 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 21 Sep 2011 09:26:23 +0000 (11:26 +0200)
src/main/resources/templates/include/soneMenu.html

index e755662..7422e94 100644 (file)
@@ -7,6 +7,15 @@
                        <span class="author-wot-link">(<a href="/WebOfTrust/ShowIdentity?id=<%sone.id|html>"><% =View.Post.WebOfTrustLink|l10n|html></a>)</span>
                </div>
                <div><%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size></div>
+               <%foreach sone.albums album>
+                       <%first>
+                               <div><a href="imageBrowser.html?sone=<% sone.id|html>"><% =Page.ViewSone.Profile.Albums.Text.All|l10n|html></a>, 
+                       <%/first>
+                               <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.description|html>"><% album.title|html></a><%notlast>, <%/notlast>
+                       <%last>
+                               </div>
+                       <%/last>
+               <%/foreach>
                <%if !sone.local>
                        <div>
                                <a class="follow<%if sone.friend> hidden<%/if>"><%= View.Sone.Button.FollowSone|l10n|html></a>