Display trust values a bit more concise.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 15 Dec 2010 08:52:35 +0000 (09:52 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 15 Dec 2010 08:52:35 +0000 (09:52 +0100)
src/main/resources/static/css/sone.css
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/include/viewReply.html

index c978cf2..ec5d1c0 100644 (file)
@@ -181,6 +181,19 @@ textarea {
        min-height: 48px;
 }
 
+#sone .trust {
+       font-size: 85%;
+       text-align: center;
+}
+
+#sone .trust .explicit {
+       color: rgb(0, 128, 0);
+}
+
+#sone .trust .implicit {
+       color: rgb(128, 128, 128);
+}
+
 #sone .post .author, #sone .post .recipient {
        display: inline;
        font-weight: bold;
index 8af0d08..d38441b 100644 (file)
@@ -5,9 +5,13 @@
                <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>
+                       <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">
index 8b4c9ef..6d9a1f5 100644 (file)
@@ -5,9 +5,13 @@
                <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>
+                       <div class="trust">
+                               <%if reply.sone.trust.assigned>
+                                       <span class="explicit"><% reply.sone.trust.explicit></span>
+                               <%else>
+                                       <span class="implicit"><% reply.sone.trust.implicit></span>
+                               <%/if>
+                       </div>
                <%/if>
        </div>
        <div class="inner-part">