X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2Fhead.html;h=5f0d567f12dd49f367a75cb30be0ecd1c21fe4a2;hb=2c5b76a2fbce16ef33f079a3de9ae9fc9a9d30b8;hp=797e7a90bdcfdc06f9d34f18519a628e1c1280f6;hpb=68f8e5e5c34fad6086af0c82d1dde64f67814297;p=Sone.git diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index 797e7a9..5f0d567 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 @@ @@ -84,6 +84,20 @@ }); 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; + }); }); @@ -98,11 +112,25 @@ unlikePost(getPostId(this)); return false; }); + $("#sone .post .reply .status-line .like").submit(function() { + likeReply(getReplyId(this)); + return false; + }); + $("#sone .post .reply .status-line .unlike").submit(function() { + unlikeReply(getReplyId(this)); + return false; + }); });
+ <%if !webInterface.core.identityManager.connected> +
+ <%= Warning.PluginNotConnected.Text|l10n|html|replace needle="{link}" replacement=""|replace needle="{/link}" replacement=""> +
+ <%/if> +
  <%ifnull ! currentSone>