From: David ‘Bombe’ Roden Date: Sun, 16 Jan 2011 19:36:23 +0000 (+0100) Subject: Show “unknown” when the date of the last update is not known. X-Git-Tag: 0.4.2^2~36 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bdfe880894a15ebcd6c9439c8b96d980c619f2f6;p=Sone.git Show “unknown” when the date of the last update is not known. This is needed for #20. --- diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 76d8941..7b8450f 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -180,6 +180,7 @@ View.CreateSone.Button.Create=Create Sone View.CreateSone.Text.Error.NoIdentity=You have not selected an identity. View.Sone.Label.LastUpdate=Last update: +View.Sone.Text.UnknownDate=unknown View.Sone.Button.UnlockSone=unlock View.Sone.Button.UnlockSone.Tooltip=Allow this Sone to be inserted now View.Sone.Button.LockSone=lock diff --git a/src/main/resources/templates/include/viewSone.html b/src/main/resources/templates/include/viewSone.html index 8b62fa4..c403b0d 100644 --- a/src/main/resources/templates/include/viewSone.html +++ b/src/main/resources/templates/include/viewSone.html @@ -5,7 +5,7 @@
⬊
⬈
✔
-
<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">
+
<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|unknown|date format="MMM d, yyyy, HH:mm:ss">
<% sone.requestUri|substring start=4 length=43|html>