Show links to all albums in the Sone context menu.
[Sone.git] / src / main / resources / templates / include / soneMenu.html
1 <div class="sone-menu <% class|css|html>">
2         <div class="sone-menu-id hidden"><%sone.id|html></div>
3         <img class="avatar" src="/WebOfTrust/GetIdenticon?identity=<%sone.id|html>&amp;width=64&amp;height=64" width="64" height="64" alt="Avatar Image" />
4         <div class="inner-menu">
5                 <div>
6                         <a class="author" href="viewSone.html?sone=<%sone.id|html>"><%sone.niceName|html></a>
7                         <span class="author-wot-link">(<a href="/WebOfTrust/ShowIdentity?id=<%sone.id|html>"><% =View.Post.WebOfTrustLink|l10n|html></a>)</span>
8                 </div>
9                 <div><%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size></div>
10                 <%foreach sone.albums album>
11                         <%first>
12                                 <div><a href="imageBrowser.html?sone=<% sone.id|html>"><% =Page.ViewSone.Profile.Albums.Text.All|l10n|html></a>, 
13                         <%/first>
14                                 <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.description|html>"><% album.title|html></a><%notlast>, <%/notlast>
15                         <%last>
16                                 </div>
17                         <%/last>
18                 <%/foreach>
19                 <%if !sone.local>
20                         <div>
21                                 <a class="follow<%if sone.friend> hidden<%/if>"><%= View.Sone.Button.FollowSone|l10n|html></a>
22                                 <a class="unfollow<%if !sone.friend> hidden<%/if>"><%= View.Sone.Button.UnfollowSone|l10n|html></a>
23                         </div>
24                 <%/if>
25         </div>
26 </div>