diff --git a/static/sidebar.html b/static/sidebar.html index 82be0ab8..ab694086 100644 --- a/static/sidebar.html +++ b/static/sidebar.html @@ -1,38 +1 @@ - -
- - - - <%# Very ugly ejs code to hide the Players button if the playerManager plugin isn`t installed %> - <% - sidebarPluginButtonsHtml = ""; - for(let o in masterPlugins){ - let plug = masterPlugins[o]; - if(plug.main - && plug.main.ui - && typeof plug.main.ui.sidebar == "object" - && Array.isArray(plug.main.ui.sidebar)){ - let sidebarEntries = plug.main.ui.sidebar; - for(let i in sidebarEntries){ - let button = sidebarEntries[i]; - if(button.getHtml && typeof button.getHtml == "function"){ - sidebarPluginButtonsHtml += button.getHtml(); - } - } - } - } - %> - <%- sidebarPluginButtonsHtml %> - -
\ No newline at end of file +<%- include("nav.html") %> \ No newline at end of file