mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Small fix to make sure old pages using the side bar go to the new nav
This commit is contained in:
1 parent
dc9d8bf987
commit
81fa5abae0
1 file changed
+1
-38
+1
-38
@@ -1,38 +1 @@
|
|||||||
<div id="header">
|
<%- include("nav.html") %>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div id="sidenav">
|
|
||||||
<div id="logo" style="height:50px;">
|
|
||||||
<img src="/pictures/clusterio_icon.png" style="width:50px;height:50px; float:left;"></img>
|
|
||||||
<h1>Clusterio</h1>
|
|
||||||
</div>
|
|
||||||
<a href="/"><div id="storage-menu" class="button-black menuItem">
|
|
||||||
<p>Storage</p>
|
|
||||||
</div></a>
|
|
||||||
<a href="/nodes"><div id="slaves-menu" class="button-black menuItem">
|
|
||||||
<p>Slaves</p>
|
|
||||||
</div></a>
|
|
||||||
<%# 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 %>
|
|
||||||
<a href="/settings"><div id="settings-menu" class="button-black menuItem">
|
|
||||||
<p>Settings</p>
|
|
||||||
</div></a>
|
|
||||||
</div>
|
|
||||||
Reference in new issue
Block a user