mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 23:24:52 +09:00
Fix the breaking changes to the plugin struture and remove slave information that is no longer present.
30 lines
964 B
Plaintext
30 lines
964 B
Plaintext
<nav class="navbar nav-pills nav-fill">
|
|
<div class="nav-item col-3">
|
|
<a class="navbar-brand border-0" href="/">
|
|
<img src="/pictures/logo.png" width="50" height="50" class="d-inline-block align-middle " alt=""/>
|
|
<h3 class=" ml-3 nav-title">Clusterio</h3>
|
|
</a>
|
|
</div>
|
|
<div class="nav-item mr-1">
|
|
<a class="nav-link align-middle" href="/nodes">Slaves</a>
|
|
</div><%
|
|
for (let plug of locals.masterPlugins.values()) {
|
|
if (
|
|
plug
|
|
&& plug.ui
|
|
&& typeof plug.ui.sidebar == "object"
|
|
&& Array.isArray(plug.ui.sidebar)
|
|
) {
|
|
let sidebarEntries = plug.ui.sidebar;
|
|
for (let button of sidebarEntries) {
|
|
if (button.getHtml && typeof button.getHtml == "function") { %>
|
|
<%- button.getHtml() %><%
|
|
}
|
|
}
|
|
}
|
|
} %>
|
|
<div class="nav-item">
|
|
<a class="nav-link align-middle" href="/settings">Settings</a>
|
|
</div>
|
|
</nav>
|