From b3eb759b6a367abdcd85b7ea11392c9e22e5e169 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 10 Nov 2010 12:24:49 +0100 Subject: [PATCH] Hide all replies but the last two. --- src/main/resources/i18n/sone.en.properties | 1 + src/main/resources/static/css/sone.css | 7 +++++++ src/main/resources/templates/include/head.html | 25 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index a665bb4..bc149d8 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -196,5 +196,6 @@ WebInterface.Confirmation.DeleteReplyButton=Yes, delete! WebInterface.SelectBox.Choose=Choose… WebInterface.SelectBox.Yes=Yes WebInterface.SelectBox.No=No +WebInterface.ClickToShow.Replies=Click here to show hidden replies. Warning.PluginNotConnected.Text=The Web of Trust plugin could not be found! This can happen if the Web of Trust plugin is not loaded or if your node is currently still starting up. In the first case, load the Web of Trust plugin using the {link}plugin manager{/link}, in the second case wait until the Web of Trust plugin has been loaded, because in either case Sone will not be working unless the Web of Trust plugin is loaded! diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 9590874..74f9c93 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -204,6 +204,13 @@ textarea { padding-top: 0.2ex; } +#sone .post .replies .click-to-show { + background-color: #f0f0ff; + font-size: 85%; + padding: 0.5em; + cursor: pointer; +} + #sone .post .reply > .avatar { position: absolute; } diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index c1ea806..f4eddf8 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -50,6 +50,31 @@ + +