From: David ‘Bombe’ Roden Date: Sat, 1 Jan 2011 01:27:46 +0000 (+0100) Subject: Hide information in notification until a link is clicked. X-Git-Tag: beta-freefall-0.6.2-1~155 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9a872c95a624a35552750c7993d03a69ba83f20c;p=Sone.git 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. --- 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> +
+