Merge branch 'next' into edit-wot-trust
[Sone.git] / src / main / resources / templates / include / viewPost.html
index 3d593bc..8af0d08 100644 (file)
@@ -3,6 +3,12 @@
        <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>
@@ -10,7 +16,7 @@
                        <%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>
+                                       <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>