From: David ‘Bombe’ Roden Date: Mon, 18 Oct 2010 20:22:49 +0000 (+0200) Subject: Add links to follow and unfollow Sones from the “Known Sones” page. X-Git-Tag: 0.1-RC1~211 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ec5fe20d0229696793047c8e01745dad9d08264e;p=Sone.git Add links to follow and unfollow Sones from the “Known Sones” page. --- diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index b87b686..76d0a06 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 View.Sone.Label.LastUpdate=last update: +View.Sone.Button.UnfollowSone=unfollow +View.Sone.Button.FollowSone=follow View.Sone.Button.UnblockSone=unblock View.Sone.Button.BlockSone=block diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index f198127..0014dd9 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -157,7 +157,7 @@ display: inline; } -#sone #known-sones form.block button, #sone #known-sones form.unblock button { +#sone #known-sones form.block button, #sone #known-sones form.unblock button, #sone #known-sones form.follow button, #sone #known-sones form.unfollow button { display: inline; color: rgb(28, 131, 191); background: none; @@ -166,7 +166,7 @@ padding: 0px; } -#sone #known-sones form.block button:hover, #sone #known-sones form.unblock button:hover { +#sone #known-sones form.block button:hover, #sone #known-sones form.unblock button:hover, #sone #known-sones form.follow button:hover, #sone #known-sones form.unfollow button:hover { display: inline; color: rgb(255, 172, 0); } diff --git a/src/main/resources/templates/knownSones.html b/src/main/resources/templates/knownSones.html index 84b6a94..096bc19 100644 --- a/src/main/resources/templates/knownSones.html +++ b/src/main/resources/templates/knownSones.html @@ -8,6 +8,19 @@
(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)
<%ifnull ! currentSone> + <%if sone.isFriend> +
+ + + +
+ <%else> +
+ + + +
+ <%/if> <%if sone.isBlocked>