X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2Fhead.html;h=80614097ee52662fe85c5faaabc2684fd7ef4eb9;hb=f0ee21d46819b4e242e9876bde3cfa911ad3a910;hp=19a5f3860536628c2a273055fce4c4db781a91cb;hpb=f75d7f9540350fcc16098770739c429a3f755bde;p=Sone.git diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index 19a5f38..8061409 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -8,7 +8,9 @@ @@ -24,27 +26,103 @@ + + + + @@ -68,36 +146,6 @@ }); return false; }); - $("#sone .block").submit(function() { - var blockElement = this; - $.getJSON("ajax/blockSone.ajax", { "sone": getSoneId(this), "formPassword": getFormPassword() }, function() { - $(blockElement).addClass("hidden"); - $(blockElement).parent().find(".unblock").removeClass("hidden"); - }); - return false; - }); - $("#sone .unblock").submit(function() { - var unblockElement = this; - $.getJSON("ajax/unblockSone.ajax", { "sone": getSoneId(this), "formPassword": getFormPassword() }, function() { - $(unblockElement).addClass("hidden"); - $(unblockElement).parent().find(".block").removeClass("hidden"); - }); - return false; - }); - $("#sone .blacklist").submit(function() { - var blacklistElement = this; - $.getJSON("ajax/blacklistSone.ajax", { "sone" : getSoneId(this), "formPassword" : getFormPassword() }, function() { - $(getSoneElement(blacklistElement)).slideUp(); - }); - return false; - }); - $("#sone .unblacklist").submit(function() { - var unblacklistElement = this; - $.getJSON("ajax/unblacklistSone.ajax", { "sone" : getSoneId(this), "formPassword" : getFormPassword() }, function() { - $(getSoneElement(unblacklistElement)).slideUp(); - }); - return false; - }); }); @@ -123,6 +171,31 @@ }); + +
<%if !webInterface.core.identityManager.connected> @@ -131,8 +204,16 @@
<%/if> +
+
-   + + <%ifnull !currentSone> + Profile Avatar + <%else> + Sone is offline + <%/if> + <%ifnull ! currentSone>
<% currentSone|store key=sone>