From e59a3f6f1512713baf6007d0fae37c69b58727a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 19 Oct 2010 21:46:58 +0200 Subject: [PATCH] Add page tail that contains the key of the current Sone. --- src/main/resources/i18n/sone.en.properties | 2 ++ src/main/resources/static/css/sone.css | 9 +++++++++ src/main/resources/templates/include/tail.html | 7 +++++++ 3 files changed, 18 insertions(+) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 506c66c..a6d106f 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -132,6 +132,8 @@ Page.Logout.Title=Logout - Sone View.Head.ProfileLink.Text=Your Profile +Page.Tail.Text.KeyOfSone=Key of this Sone (give this to other people): + View.Sone.Label.LastUpdate=Last update: View.Sone.Button.UnfollowSone=unfollow View.Sone.Button.FollowSone=follow diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 32fa4c3..ab45d45 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -230,6 +230,15 @@ display: inline; } +#sone #tail .import-key { + margin-top: 1em; + border-top: solid 1px #ccc; + padding-top: 1em; + text-align: center; + font-size: 85%; + color: #888; +} + #sone h1 { font-family: inherit; diff --git a/src/main/resources/templates/include/tail.html b/src/main/resources/templates/include/tail.html index 0e7d491..3e8040a 100644 --- a/src/main/resources/templates/include/tail.html +++ b/src/main/resources/templates/include/tail.html @@ -1,2 +1,9 @@ + +
+ <%ifnull ! currentSone> +
<%= Page.Tail.Text.KeyOfSone|l10n|html>
<% currentSone.requestUri|html>
+ <%/if> +
+ -- 2.7.4