mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02:00
admin: add MONITORING section to the sidebar
Links the six monitoring pages, with the active link highlighted. The generated diff is large because inserting a nav section renumbers templ's string literals.
This commit is contained in:
@@ -175,6 +175,42 @@ templ Layout(view ViewContext, content templ.Component) {
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h6 class="sidebar-heading px-3 mt-4 mb-1 text-muted">
|
||||
<span>MONITORING</span>
|
||||
</h6>
|
||||
<ul class="nav flex-column">
|
||||
<li class="nav-item">
|
||||
<a class={ "nav-link", templ.KV("active", currentPath == "/monitoring") } href={ view.P("/monitoring") }>
|
||||
<i class="fas fa-chart-line me-2"></i>Overview
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class={ "nav-link", templ.KV("active", currentPath == "/monitoring/volume-servers") } href={ view.P("/monitoring/volume-servers") }>
|
||||
<i class="fas fa-server me-2"></i>Volume Servers
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class={ "nav-link", templ.KV("active", currentPath == "/monitoring/filers") } href={ view.P("/monitoring/filers") }>
|
||||
<i class="fas fa-folder-open me-2"></i>Filers
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class={ "nav-link", templ.KV("active", currentPath == "/monitoring/s3") } href={ view.P("/monitoring/s3") }>
|
||||
<i class="fas fa-cloud me-2"></i>S3
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class={ "nav-link", templ.KV("active", currentPath == "/monitoring/masters") } href={ view.P("/monitoring/masters") }>
|
||||
<i class="fas fa-crown me-2"></i>Masters
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class={ "nav-link", templ.KV("active", currentPath == "/monitoring/workers") } href={ view.P("/monitoring/workers") }>
|
||||
<i class="fas fa-users-cog me-2"></i>Workers
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h6 class="sidebar-heading px-3 mt-4 mb-1 text-muted">
|
||||
<span>OBJECT STORE</span>
|
||||
</h6>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user