From 81fa5abae09245ed2b9fd39f76c69f9e8f2ba2e2 Mon Sep 17 00:00:00 2001 From: J-Lassauw Date: Fri, 14 Dec 2018 14:30:36 +0000 Subject: [PATCH] Small fix to make sure old pages using the side bar go to the new nav --- static/sidebar.html | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) 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