Display trust values a bit more concise.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index ffc7608..d38441b 100644 (file)
@@ -3,6 +3,16 @@
        <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 />
+                       <div class="trust">
+                               <%if post.sone.trust.assigned>
+                                       <span class="explicit"><% post.sone.trust.explicit></span>
+                               <%else>
+                                       <span class="implicit"><% post.sone.trust.implicit></span>
+                               <%/if>
+                       </div>
+               <%/if>
        </div>
        <div class="inner-part">
                <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>
+                                       <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|html></div>
+                       <div class="text"><% post.text></div>
                </div>
                <div class="post-status-line status-line">
                        <div class="time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>