From: David ‘Bombe’ Roden Date: Sat, 18 Dec 2010 00:55:11 +0000 (+0100) Subject: Show trust differently. X-Git-Tag: 0.4^2~8^2~43 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0da3fe68ecd25fdfc5eca94f939288c9f6273940;hp=ee8888053a6990fd02ee12a582c616f302dc4084;p=Sone.git Show trust differently. --- diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index e080e4d..66d8f5c 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -159,6 +159,10 @@ View.Post.Reply.DeleteLink=Delete View.Post.LikeLink=Like View.Post.UnlikeLink=Unlike +View.Trust.Label=Trust: +View.Trust.IncreaseTrustLink=↑ +View.Trust.DecreaseTrustLink=↓ + WebInterface.DefaultText.StatusUpdate=What’s on your mind? WebInterface.DefaultText.Message=Write a Message… WebInterface.DefaultText.Reply=Write a Reply… diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index ec5d1c0..0ca86b0 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -214,9 +214,10 @@ textarea { color: #666; } -#sone .post .delete, #sone .post .likes, #sone .post .like, #sone .post .unlike { +#sone .post .delete, #sone .post .likes, #sone .post .like, #sone .post .unlike, #sone .post .increase-trust, #sone .post .decrease-trust { display: inline; font: inherit; + margin: 0px; } #sone .post .likes.hidden { @@ -227,15 +228,16 @@ textarea { display: none; } -#sone .post .delete button, #sone .post .like button, #sone .post .unlike button { +#sone .post .delete button, #sone .post .like button, #sone .post .unlike button, #sone .post .increase-trust button, #sone .post .decrease-trust button { border: 0px; background: none; padding: 0px; color: rgb(28, 131, 191); font: inherit; + margin: 0px; } -#sone .post .delete button:hover, #sone .post .like button:hover, #sone .post .unlike button:hover { +#sone .post .delete button:hover, #sone .post .like button:hover, #sone .post .unlike button:hover, #sone .post .increase-trust button:hover, #sone .post .decrease-trust button:hover { border: 0px; background: none; padding: 0px; @@ -252,6 +254,19 @@ textarea { color: green; } +#sone .post .trust { + display: inline; +} + +#sone .post .trust:before { + content: ' · '; +} + +#sone .trust .explicit, #sone .trust .implicit { + font: inherit; + display: inline; +} + #sone .post .replies { clear: both; padding-top: 0.2ex; diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 84c59d3..8667bac 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -3,16 +3,6 @@
Avatar Image - <%if !post.sone.current> -
-
- <%if post.sone.trust.assigned> - <% post.sone.trust.explicit> - <%else> - <% post.sone.trust.implicit> - <%/if> -
- <%/if>
@@ -46,6 +36,30 @@ <%/if> + <%if !post.sone.current> +
+ <%= View.Trust.Label|l10n|html> + <%if post.sone.trust.assigned> +
<% post.sone.trust.explicit>
+ <%else> +
<% post.sone.trust.implicit><%if post.sone.trust.hasDistance> (<% post.sone.trust.distance>)<%/if>
+ <%/if> + <%if !post.sone.trust.maximum> +
+ + + + +
+ <%/if> +
+ + + + +
+
+ <%/if> <%if post.sone.current>
diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index 99aa2a6..a9b308e 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -3,16 +3,6 @@
Avatar Image - <%if !reply.sone.current> -
-
- <%if reply.sone.trust.assigned> - <% reply.sone.trust.explicit> - <%else> - <% reply.sone.trust.implicit> - <%/if> -
- <%/if>
@@ -38,6 +28,30 @@ <%/if> + <%if !reply.sone.current> +
+ <%= View.Trust.Label|l10n|html> + <%if reply.sone.trust.assigned> +
<% reply.sone.trust.explicit>
+ <%else> +
<% reply.sone.trust.implicit><%if reply.sone.trust.hasDistance> (<% reply.sone.trust.distance>)<%/if>
+ <%/if> + <%if !reply.sone.trust.maximum> +
+ + + + +
+ <%/if> +
+ + + + +
+
+ <%/if> <%if reply.sone.current>