X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FknownSones.html;h=c0bb35bf4ff368643de127f9c779f12050b4c37e;hb=16bebcb43fb56df0ae5d7f206f9fb4032d145fc0;hp=7b42d53d00c61714c216eec0910c658dc3c79f96;hpb=43a21f859e9fec31096c1540148bdd44a8e3702f;p=Sone.git diff --git a/src/main/resources/templates/knownSones.html b/src/main/resources/templates/knownSones.html index 7b42d53..c0bb35b 100644 --- a/src/main/resources/templates/knownSones.html +++ b/src/main/resources/templates/knownSones.html @@ -7,9 +7,9 @@ $(document).ready(function() { $("select[name=sort]").change(function() { value = $(this).val(); - if ((value == "activity") || (value == "posts") || (value == "images")) { + if ((value === "activity") || (value === "posts") || (value === "images")) { $("select[name=order]").val("desc"); - } else if (value == "name") { + } else if (value === "name") { $("select[name=order]").val("asc"); } }); @@ -27,23 +27,29 @@
<%= Page.KnownSones.Label.Sort|l10n|html>
<%ifnull !currentSone>
- <%= Page.KnownSones.Label.FollowedSones|l10n|html> - - - + <%ifnull !currentSone> + + + <%/if> + + + +
<%/if> @@ -53,33 +59,34 @@ -
-
- - - - -
-
+ <%if !pagination.items.empty> +
+
+ + + + +
+
-
-
- - - - -
-
+
+
+ + + + +
+
+ <%/if>
- <%= page|store key=pageParameter> - <%include include/pagination.html> + <%include include/pagination.html pageParameter==page> <%foreach pagination.items sone> <%include include/viewSone.html> <%foreachelse>
<%= Page.KnownSones.Text.NoKnownSones|l10n|html>
<%/foreach> - <%include include/pagination.html> + <%include include/pagination.html pageParameter==page>
<%include include/tail.html>