Show custom avatar where applicable.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index a478bba..fd54e5d 100644 (file)
@@ -6,7 +6,11 @@
        <%include include/soneMenu.html class=="sone-post-menu" sone=post.sone>
        <div class="avatar post-avatar" >
                <%if post.loaded>
-                       <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&amp;width=48&height=48" width="48" height="48" alt="Avatar Image" />
+                       <%ifnull !post.sone.avatar>
+                               <%post.sone.avatar|image-link max-width=48 max-height=48 mode=enlarge title="Avatar Image">
+                       <%else>
+                               <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&amp;width=48&height=48" width="48" height="48" alt="Avatar Image" />
+                       <%/if>
                <%else>
                        <img src="images/sone-avatar.png" width="48" height="48" alt="Avatar Image" />
                <%/if>