Use buttons instead of links for following and unfollowing.
[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                         (<%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size>)
8                 </div>
9                 <div><a href="/WebOfTrust/ShowIdentity?id=<%sone.id|html>">» <% =View.Post.WebOfTrustLink|l10n|html></a></div>
10                 <%foreach sone.albums album>
11                         <%first>
12                                 <div><a href="imageBrowser.html?sone=<% sone.id|html>">» <% =View.SoneMenu.Link.AllAlbums|l10n|html></a></div>
13                         <%/first>
14                 <%/foreach>
15                 <%if !sone.local>
16                         <div>
17                                 <button class="follow<%if sone.friend> hidden<%/if>"><%= View.Sone.Button.FollowSone|l10n|html></button>
18                                 <button class="unfollow<%if !sone.friend> hidden<%/if>"><%= View.Sone.Button.UnfollowSone|l10n|html></buton>
19                         </div>
20                 <%/if>
21         </div>
22 </div>