Add page tail that contains the key of the current Sone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 19:46:58 +0000 (21:46 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 19:46:58 +0000 (21:46 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/static/css/sone.css
src/main/resources/templates/include/tail.html

index 506c66c..a6d106f 100644 (file)
@@ -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
index 32fa4c3..ab45d45 100644 (file)
        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;
index 0e7d491..3e8040a 100644 (file)
@@ -1,2 +1,9 @@
        </div>
+       
+       <div id="tail">
+               <%ifnull ! currentSone>
+                       <div class="import-key"><%= Page.Tail.Text.KeyOfSone|l10n|html><br/><% currentSone.requestUri|html></div>
+               <%/if>
+       </div>
+       
 </div>