X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2Fhead.html;h=c1ea806941b735c1ef7610eb675491385a5af00d;hb=9618a801b7c230265381f72b9be596a8808b3c2d;hp=ee4278cf53a907de19c417ad2c7e26594d5c1286;hpb=47df88512f5288d6a1f5f268cdf787bb4bf169c7;p=Sone.git diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index ee4278c..c1ea806 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -1,4 +1,4 @@ -
+
<% formPassword|html>
@@ -8,7 +8,7 @@ @@ -24,7 +24,7 @@ @@ -34,7 +34,7 @@ $(document).ready(function() { $("#sone .post").each(function() { postId = $(this).attr("id"); - enhanceDeletePostButton("#sone .post#" + postId + " > .status-line .delete button", postId); + enhanceDeletePostButton("#sone .post#" + postId + " > .inner-part > .status-line .delete button", postId); (function(postId) { $("#sone .post#" + postId + " .reply").each(function() { replyId = $(this).attr("id"); @@ -84,13 +84,61 @@ }); 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; + }); + }); + + +
+ <%if !webInterface.core.identityManager.connected> +
+ <%= Warning.PluginNotConnected.Text|l10n|html|replace needle="{link}" replacement=""|replace needle="{/link}" replacement=""> +
+ <%/if> +
-   + + <%ifnull !currentSone> + Profile Avatar + <%else> + Sone is offline + <%/if> + <%ifnull ! currentSone>
<% currentSone|store key=sone>