From 8340bad96a0e0fa5dcf1f6a0b2435566452001a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 9 Jan 2011 21:51:01 +0100 Subject: [PATCH] Add version information to all templates. --- src/main/resources/i18n/sone.en.properties | 2 ++ src/main/resources/static/css/sone.css | 4 ++++ src/main/resources/templates/include/tail.html | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 1dbfabc..740cf45 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -175,6 +175,8 @@ WebInterface.SelectBox.Choose=Choose… WebInterface.SelectBox.Yes=Yes WebInterface.SelectBox.No=No WebInterface.ClickToShow.Replies=Click here to show hidden replies. +WebInterface.VersionInformation.CurrentVersion=Current Version: +WebInterface.VersionInformation.LatestVersion=Latest Version: 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. diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 89d9854..dfd6b9a 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -444,6 +444,10 @@ textarea { color: #888; } +#sone #tail #version-information { + margin-top: 1em; +} + #sone #add-sone textarea, #sone #create-sone textarea, #sone #load-sone textarea, #sone #edit-profile textarea { height: 1.5em; } diff --git a/src/main/resources/templates/include/tail.html b/src/main/resources/templates/include/tail.html index 180bcf2..dd2e25e 100644 --- a/src/main/resources/templates/include/tail.html +++ b/src/main/resources/templates/include/tail.html @@ -7,6 +7,13 @@ Flattr Sone + +
+
<%= WebInterface.VersionInformation.CurrentVersion|l10n|html> <% currentVersion|html>
+ <%if hasLatestVersion> +
<%= WebInterface.VersionInformation.LatestVersion|l10n|html> <% latestVersion|html>
+ <%/if> +
-- 2.7.4