Show trust values below avatars.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 15 Dec 2010 07:26:16 +0000 (08:26 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 15 Dec 2010 07:26:16 +0000 (08:26 +0100)
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/include/viewReply.html

index 1d938d1..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>
index d11aa5f..8b4c9ef 100644 (file)
@@ -3,6 +3,12 @@
        <div class="reply-time hidden"><% reply.time|html></div>
        <div class="avatar">
                <img src="/WoT/GetIdenticon?identity=<% reply.sone.id|html>&amp;width=36&height=36" width="36" height="36" alt="Avatar Image" />
+               <%if !reply.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>