From: David ‘Bombe’ Roden Date: Mon, 18 Oct 2010 20:31:50 +0000 (+0200) Subject: Create Sone view. X-Git-Tag: 0.1-RC1~208 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=a95d49d12c6cd9a6811128f4124cceb594ee324c Create Sone view. --- diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 0014dd9..0ae0e32 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -145,19 +145,19 @@ display: none; } -#sone #known-sones .profile-link { +#sone .sone .profile-link { display: inline; } -#sone #known-sones .request-uri { +#sone .sone .request-uri { display: inline; } -#sone #known-sones .last-update { +#sone .sone .last-update { display: inline; } -#sone #known-sones form.block button, #sone #known-sones form.unblock button, #sone #known-sones form.follow button, #sone #known-sones form.unfollow button { +#sone .sone form.block button, #sone .sone form.unblock button, #sone .sone form.follow button, #sone .sone form.unfollow button { display: inline; color: rgb(28, 131, 191); background: none; @@ -166,12 +166,12 @@ padding: 0px; } -#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 { +#sone .sone form.block button:hover, #sone .sone form.unblock button:hover, #sone .sone form.follow button:hover, #sone .sone form.unfollow button:hover { display: inline; color: rgb(255, 172, 0); } -#sone #known-sones form { +#sone .sone form { display: inline; } diff --git a/src/main/resources/templates/include/viewSone.html b/src/main/resources/templates/include/viewSone.html new file mode 100644 index 0000000..cecbb33 --- /dev/null +++ b/src/main/resources/templates/include/viewSone.html @@ -0,0 +1,34 @@ +
+ +
(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)
+ <%ifnull ! currentSone> + <%if ! sone.isCurrent> + <%if sone.isFriend> +
+ + + +
+ <%else> + + <%/if> + <%if sone.isBlocked> +
+ + + +
+ <%else> +
+ + + +
+ <%/if> + <%/if> + <%/if> +
diff --git a/src/main/resources/templates/knownSones.html b/src/main/resources/templates/knownSones.html index 3f22405..4364cb1 100644 --- a/src/main/resources/templates/knownSones.html +++ b/src/main/resources/templates/knownSones.html @@ -4,40 +4,7 @@
<%foreach knownSones sone> -
- -
(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)
- <%ifnull ! currentSone> - <%if ! sone.isCurrent> - <%if sone.isFriend> -
- - - -
- <%else> - - <%/if> - <%if sone.isBlocked> -
- - - -
- <%else> -
- - - -
- <%/if> - <%/if> - <%/if> -
+ <%include include/viewSone.html> <%foreachelse>
<%= Page.KnownSones.Text.NoKnownSones|l10n|html>
<%/foreach> diff --git a/src/main/resources/templates/viewSone.html b/src/main/resources/templates/viewSone.html index dea7f53..7b0647f 100644 --- a/src/main/resources/templates/viewSone.html +++ b/src/main/resources/templates/viewSone.html @@ -31,16 +31,8 @@

<%= Page.ViewSone.Following.Title|l10n|html>

- <%foreach sone.friends friend> - <%first> - - <%/last> - <%foreachelse> -
<%= Page.ViewSone.Following.FollowingNone.Text|l10n|html>
+ <%foreach sone.friends sone> + <%include include/viewSone.html> <%/foreach>