1 <%include include/head.html>
3 <div class="page-id hidden">known-sones</div>
5 <script language="javascript">
7 $(document).ready(function() {
8 $("select[name=sort]").change(function() {
10 if ((value == "activity") || (value == "posts") || (value == "images")) {
11 $("select[name=order]").val("desc");
12 } else if (value == "name") {
13 $("select[name=order]").val("asc");
16 $("#sort-options select").change(function() {
23 <h1><%= Page.KnownSones.Page.Title|l10n|html></h1>
25 <div id="sort-options">
26 <form action="knownSones.html" method="get">
28 <%= Page.KnownSones.Label.Sort|l10n|html>
30 <option value="name"<%if sort|match value="name"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Field.Name|l10n|html></option>
31 <option value="activity"<%if sort|match value="activity"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Field.LastActivity|l10n|html></option>
32 <option value="posts"<%if sort|match value="posts"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Field.Posts|l10n|html></option>
33 <option value="images"<%if sort|match value="images"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Field.Images|l10n|html></option>
36 <option value="asc"<%if order|match value="asc"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Order.Ascending|l10n|html></option>
37 <option value="desc"<%if order|match value="desc"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Order.Descending|l10n|html></option>
40 <%ifnull !currentSone>
42 <%= Page.KnownSones.Label.FilterSones|l10n|html>
43 <select name="filter">
44 <option value="none"></option>
45 <%ifnull !currentSone>
46 <option value="followed"<%if filter|match value="followed"> selected="selected"<%/if>><%= Page.KnownSones.Filter.Followed|l10n|html></option>
47 <option value="not-followed"<%if filter|match value="not-followed"> selected="selected"<%/if>><%= Page.KnownSones.Filter.NotFollowed|l10n|html></option>
49 <option value="new"<%if filter|match value="new"> selected="selected"<%/if>><%= Page.KnownSones.Filter.New|l10n|html></option>
50 <option value="not-new"<%if filter|match value="not-new"> selected="selected"<%/if>><%= Page.KnownSones.Filter.NotNew|l10n|html></option>
55 <button type="submit"><%= Page.KnownSones.Button.Apply|l10n|html></button>
60 <%if !pagination.items.empty>
62 <form action="followSone.html" method="post">
63 <input type="hidden" name="formPassword" value="<%formPassword|html>" />
64 <input type="hidden" name="returnPage" value="<%request.uri|html>" />
65 <input type="hidden" name="sone" value="<%foreach pagination.items sone><%if !sone.friend><%if !sone.current><%sone.id> <%/if><%/if><%/foreach>" />
66 <button type="submit"><%= Page.KnownSones.Button.FollowAllSones|l10n|html></button>
71 <form action="unfollowSone.html" method="post">
72 <input type="hidden" name="formPassword" value="<%formPassword|html>" />
73 <input type="hidden" name="returnPage" value="<%request.uri|html>" />
74 <input type="hidden" name="sone" value="<%foreach pagination.items sone><%if sone.friend><%sone.id> <%/if><%/foreach>" />
75 <button type="submit"><%= Page.KnownSones.Button.UnfollowAllSones|l10n|html></button>
80 <div id="known-sones">
81 <%= page|store key=pageParameter>
82 <%include include/pagination.html>
83 <%foreach pagination.items sone>
84 <%include include/viewSone.html>
86 <div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
88 <%include include/pagination.html>
91 <%include include/tail.html>