From ac0a49027e36c54735cf57317718e03872ce1185 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 15 Dec 2010 09:52:35 +0100 Subject: [PATCH] Display trust values a bit more concise. --- src/main/resources/static/css/sone.css | 13 +++++++++++++ src/main/resources/templates/include/viewPost.html | 10 +++++++--- src/main/resources/templates/include/viewReply.html | 10 +++++++--- 3 files changed, 27 insertions(+), 6 deletions(-) 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>
-- 2.7.4