From: David ‘Bombe’ Roden Date: Wed, 15 Dec 2010 08:52:35 +0000 (+0100) Subject: Display trust values a bit more concise. X-Git-Tag: 0.4^2~8^2~48 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=ac0a49027e36c54735cf57317718e03872ce1185 Display trust values a bit more concise. --- diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index c978cf2..ec5d1c0 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -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; diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 8af0d08..d38441b 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -5,9 +5,13 @@ Avatar Image <%if !post.sone.current>
- <%ifnull !post.sone.trust.explicit><% post.sone.trust.explicit><%/if> - <%ifnull !post.sone.trust.implicit><% post.sone.trust.implicit><%/if> - <%ifnull !post.sone.trust.distance><% post.sone.trust.distance><%/if> +
+ <%if post.sone.trust.assigned> + <% post.sone.trust.explicit> + <%else> + <% post.sone.trust.implicit> + <%/if> +
<%/if>
diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index 8b4c9ef..6d9a1f5 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -5,9 +5,13 @@ Avatar Image <%if !reply.sone.current>
- <%ifnull !post.sone.trust.explicit><% post.sone.trust.explicit><%/if> - <%ifnull !post.sone.trust.implicit><% post.sone.trust.implicit><%/if> - <%ifnull !post.sone.trust.distance><% post.sone.trust.distance><%/if> +
+ <%if reply.sone.trust.assigned> + <% reply.sone.trust.explicit> + <%else> + <% reply.sone.trust.implicit> + <%/if> +
<%/if>