X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2Fhead.html;h=9fb2525537a5e10863f1e49c9e974bee3071b7fa;hb=5ac2eeb4296b651f380e2d35ad35cf4bfc70c766;hp=16c939104d3f0cad9ee03021aaded3319981df2a;hpb=49d9495df2c569a03b24925e1b0f3c9bcbd2f379;p=Sone.git diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index 16c9391..9fb2525 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -8,7 +8,9 @@ @@ -16,7 +18,7 @@ /* these functions are necessary for updating Sone statuses. */ $(document).ready(function() { $("#sone .sone").each(function() { - watchSone($(this).find(".id").text()); + watchSone($(this).find(".id").text(), $(this).hasClass("local")); }); }); @@ -24,27 +26,103 @@ + + + + @@ -68,33 +146,17 @@ }); 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; - }); }); + +
+ <%if !webInterface.core.identityManager.connected> +
+ <%= Warning.PluginNotConnected.Text|l10n|html|replace needle="{link}" replacement=""|replace needle="{/link}" replacement=""> +
+ <%/if> + +
+ <%foreach webInterface.notifications.all notification> +
+ <%if notification.dismissable> +
+ + + + +
+ <%/if> + <% notification> +
+ <%/foreach> +
+
-   + + <%ifnull !currentSone> + Profile Avatar + <%else> + Sone is offline + <%/if> + <%ifnull ! currentSone>
<% currentSone|store key=sone>