$(document).ready(function() {
$("select[name=sort]").change(function() {
value = $(this).val();
- if (value == "activity") {
+ if ((value == "activity") || (value == "posts")) {
$("select[name=order]").val("desc");
} else if (value == "name") {
$("select[name=order]").val("asc");
<select name="sort">
<option value="name"<%if sort|match value="name"> selected="selected"<%/if>>Name</option>
<option value="activity"<%if sort|match value="activity"> selected="selected"<%/if>>Last activity</option>
+ <option value="posts"<%if sort|match value="posts"> selected="selected"<%/if>>Number of posts</option>
</select>
<select name="order">
<option value="asc"<%if order|match value="asc"> selected="selected"<%/if>>Ascending</option>
</form>
</div>
+ <div>
+ <form action="followSone.html" method="post">
+ <input type="hidden" name="formPassword" value="<%formPassword|html>" />
+ <input type="hidden" name="returnPage" value="<%request.uri|html>" />
+ <input type="hidden" name="sone" value="<%foreach pagination.items sone><%if !sone.friend><%if !sone.current><%sone.id> <%/if><%/if><%/foreach>" />
+ <button type="submit"><%= Page.KnownSones.Button.FollowAllSones|l10n|html></button>
+ </form>
+ </div>
+
+ <div>
+ <form action="unfollowSone.html" method="post">
+ <input type="hidden" name="formPassword" value="<%formPassword|html>" />
+ <input type="hidden" name="returnPage" value="<%request.uri|html>" />
+ <input type="hidden" name="sone" value="<%foreach pagination.items sone><%if sone.friend><%sone.id> <%/if><%/foreach>" />
+ <button type="submit"><%= Page.KnownSones.Button.UnfollowAllSones|l10n|html></button>
+ </form>
+ </div>
+
<div id="known-sones">
<%= page|store key=pageParameter>
<%include include/pagination.html>