From a5a7381f8624ceec940fc49896fc0c774dc6d0eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 17 Feb 2011 10:33:24 +0100 Subject: [PATCH] Add star for bookmarks in post view. --- src/main/resources/i18n/sone.en.properties | 2 ++ src/main/resources/static/css/sone.css | 5 +++++ src/main/resources/templates/include/viewPost.html | 15 +++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 5ec8348..08f5f6d 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -200,6 +200,8 @@ View.Sone.Status.Downloading=This Sone is currently being downloaded. View.Sone.Status.Inserting=This Sone is currently being inserted. View.Post.UnknownAuthor=(unknown) +View.Post.Bookmarks.PostIsBookmarked=Post is bookmarked, click to remove from bookmarks +View.Post.Bookmarks.PostIsNotBookmarked=Post is not bookmarked, click to bookmark View.Post.DeleteLink=Delete View.Post.SendReply=Post Reply! View.Post.Reply.DeleteLink=Delete diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 676a9d5..f5250e3 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -254,6 +254,11 @@ textarea { color: rgb(28, 131, 191); } +#sone .post .bookmarks, #sone .post .bookmarked, #sone .post .not-bookmarked { + display: inline; + color: rgb(28, 131, 191); +} + #sone .post .time { display: inline; color: #666; diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index dc2912e..92fff0f 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -19,6 +19,21 @@
<% post.text|parse sone=post.sone>
+
+
+ + + + +
+
+ + + + +
+
+ ·
· -- 2.7.4