From 9a872c95a624a35552750c7993d03a69ba83f20c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 1 Jan 2011 02:27:46 +0100 Subject: [PATCH] Hide information in notification until a link is clicked. This should reduce visual clutter when lots of new posts and replies have been found, e.g. after Sone has not been running for a while. --- src/main/resources/i18n/sone.en.properties | 3 +++ src/main/resources/templates/notify/newPostNotification.html | 6 +++++- src/main/resources/templates/notify/newReplyNotification.html | 6 +++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index e080e4d..f8ce026 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -176,12 +176,15 @@ WebInterface.SelectBox.Yes=Yes WebInterface.SelectBox.No=No WebInterface.ClickToShow.Replies=Click here to show hidden replies. +Notification.ClickHereToRead=Click here to read the full text of the notification. Notification.FirstStart.Text=This seems to be the first time you start Sone. To start, create a new Sone from a web of trust identity and start following other Sones. Notification.Startup.Text=Sone is currently starting up. It may take a while to retrieve all identities and Sones from the web of trust. If you are missing some elements, please be patient, they will probably reappear very soon. Notification.ConfigNotRead.Text=The configuration file “sone.properties” could not be read, probably because it was not saved correctly. This can happen on versions prior to Sone 0.3.3 and there is nothing you can do about it. Notification.Button.Dismiss=Dismiss Notification.NewSone.Text=New Sones have been discovered: +Notification.NewPost.ShortText=New posts have been discovered. Notification.NewPost.Text=New posts have been discovered by the following Sones: +Notification.NewReply.ShortText=New replies have been discovered. Notification.NewReply.Text=New replies have been discovered by the following Sones: Notification.SoneIsBeingRescued.Text=The following Sones are currently being rescued: Notification.SoneRescued.Text=The following Sones have been rescued: diff --git a/src/main/resources/templates/notify/newPostNotification.html b/src/main/resources/templates/notify/newPostNotification.html index 5889ef5..f17a1ba 100644 --- a/src/main/resources/templates/notify/newPostNotification.html +++ b/src/main/resources/templates/notify/newPostNotification.html @@ -1,4 +1,8 @@ -
+
+ <%= Notification.NewPost.ShortText|l10n|html> + <%= Notification.ClickHereToRead|l10n|html> +
+