Move avatar from options to profile.
[Sone.git] / src / main / resources / templates / include / soneMenu.html
index 128e389..9fa982f 100644 (file)
@@ -1,6 +1,12 @@
 <div class="sone-menu <% class|css|html>">
        <div class="sone-menu-id hidden"><%sone.id|html></div>
-       <img class="avatar" src="/WebOfTrust/GetIdenticon?identity=<%sone.id|html>&amp;width=64&amp;height=64" width="64" height="64" alt="Avatar Image" />
+       <div class="avatar menu-avatar">
+               <%ifnull !sone.profile.avatar>
+                       <%sone.profile.avatar|image-link max-width=64 max-height=64 mode=enlarge title==sone.niceName>
+               <%else>
+                       <img src="/WebOfTrust/GetIdenticon?identity=<%sone.id|html>&amp;width=64&amp;height=64" width="64" height="64" alt="Avatar Image" />
+               <%/if>
+       </div>
        <div class="inner-menu">
                <div>
                        <a class="author" href="viewSone.html?sone=<%sone.id|html>"><%sone.niceName|html></a>