Show trust values below avatars.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index 5335227..8af0d08 100644 (file)
@@ -3,10 +3,24 @@
        <div class="post-time hidden"><% post.time|html></div>
        <div class="avatar">
                <img src="/WoT/GetIdenticon?identity=<% post.sone.id|html>&amp;width=48&height=48" width="48" height="48" alt="Avatar Image" />
+               <%if !post.sone.current>
+                       <br />
+                       <%ifnull !post.sone.trust.explicit><span class="trust"><% post.sone.trust.explicit></span><%/if>
+                       <%ifnull !post.sone.trust.implicit><span class="score"><% post.sone.trust.implicit></span><%/if>
+                       <%ifnull !post.sone.trust.distance><span class="rank"><% post.sone.trust.distance></span><%/if>
+               <%/if>
        </div>
        <div class="inner-part">
                <div>
                        <div class="author profile-link"><a href="viewSone.html?sone=<% post.sone.id|html>"><% post.sone.niceName|html></a></div>
+                       <%ifnull !post.recipient>
+                               <span class="recipient-to">→</span>
+                               <%ifnull post.recipient.identity>
+                                       <div class="recipient profile-link"><a href="viewSone.html?sone=<% post.recipient.id|html>"><%= View.Post.UnknownAuthor|l10n|html></a></div>
+                               <%else>
+                                       <div class="recipient profile-link"><a href="viewSone.html?sone=<% post.recipient.id|html>"><% post.recipient.niceName|html></a></div>
+                               <%/if>
+                       <%/if>
                        <div class="text"><% post.text></div>
                </div>
                <div class="post-status-line status-line">