From: David ‘Bombe’ Roden Date: Sun, 9 Jan 2011 20:51:01 +0000 (+0100) Subject: Add version information to all templates. X-Git-Tag: 0.3.7^2~8^2~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8340bad96a0e0fa5dcf1f6a0b2435566452001a0;p=Sone.git Add version information to all templates. --- 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> +