2026-02-07 05:51:21 +00:00
|
|
|
{{ define "sync/component/sidebar.html" }}
|
2026-03-13 21:22:34 +00:00
|
|
|
<div id="sidebar" x-data="$store.user">
|
2026-02-07 05:51:21 +00:00
|
|
|
<div class="sidebar-header">
|
|
|
|
|
<div class="logo-container">
|
|
|
|
|
<img class="logo" src="/static/img/nidus-logo-256-transparent.png" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<button id="sidebarToggle" class="btn btn-sm p-0">
|
|
|
|
|
<i id="sidebarToggleIcon" class="bi bi-chevron-left"></i>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<ul class="sidebar-menu">
|
|
|
|
|
<li>
|
2026-02-17 14:58:38 +00:00
|
|
|
<a
|
2026-02-27 16:05:57 +00:00
|
|
|
href="{{ .URL.Root }}"
|
2026-02-17 14:58:38 +00:00
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
|
data-bs-placement="right"
|
|
|
|
|
title="Home"
|
|
|
|
|
>
|
2026-02-07 05:51:21 +00:00
|
|
|
<div class="menu-icon"><i class="bi bi-house"></i></div>
|
|
|
|
|
<span class="menu-text ms-2">Home</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
2026-02-10 16:04:15 +00:00
|
|
|
<li>
|
2026-02-17 14:22:19 +00:00
|
|
|
<a
|
2026-02-27 16:05:57 +00:00
|
|
|
href="{{ .URL.Sidebar.Intelligence }}"
|
2026-02-17 14:58:38 +00:00
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
|
data-bs-placement="right"
|
2026-02-27 16:05:57 +00:00
|
|
|
title="Intelligence"
|
2026-02-17 14:22:19 +00:00
|
|
|
>
|
2026-02-27 16:05:57 +00:00
|
|
|
<div class="menu-icon">{{ template "brain.svg" }}</div>
|
|
|
|
|
<span class="menu-text ms-2">Intelligence</span>
|
2026-02-17 14:22:19 +00:00
|
|
|
</a>
|
|
|
|
|
</li>
|
2026-02-17 17:29:15 +00:00
|
|
|
<li>
|
|
|
|
|
<a
|
2026-02-27 16:05:57 +00:00
|
|
|
href="{{ .URL.Sidebar.Communication }}"
|
2026-02-17 17:29:15 +00:00
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
|
data-bs-placement="right"
|
2026-02-27 16:05:57 +00:00
|
|
|
title="Communication"
|
2026-02-17 17:29:15 +00:00
|
|
|
>
|
2026-02-27 16:05:57 +00:00
|
|
|
<div class="menu-icon">{{ template "messaging.svg" }}</div>
|
|
|
|
|
<span class="menu-text ms-2">Communication</span>
|
2026-03-13 21:22:34 +00:00
|
|
|
<span
|
|
|
|
|
x-show="notification_counts.communication > 0"
|
|
|
|
|
x-cloak
|
|
|
|
|
class="position-absolute translate-middle badge rounded-pill bg-primary"
|
|
|
|
|
>
|
2026-02-10 16:04:15 +00:00
|
|
|
<span
|
2026-03-13 21:22:34 +00:00
|
|
|
x-text="notification_counts.communication > 99 ? '99+' : notification_counts.communication"
|
|
|
|
|
></span>
|
|
|
|
|
<span class="visually-hidden">unread notifications</span>
|
|
|
|
|
</span>
|
2026-02-07 05:51:21 +00:00
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-02-17 14:22:19 +00:00
|
|
|
<a
|
2026-02-27 16:05:57 +00:00
|
|
|
href="{{ .URL.Sidebar.Planning }}"
|
2026-02-17 14:58:38 +00:00
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
|
data-bs-placement="right"
|
2026-02-27 16:05:57 +00:00
|
|
|
title="Planning"
|
2026-02-17 14:22:19 +00:00
|
|
|
>
|
2026-02-27 16:05:57 +00:00
|
|
|
<div class="menu-icon">{{ template "strategy.svg" }}</div>
|
|
|
|
|
<span class="menu-text ms-2">Planning</span>
|
2026-02-07 05:51:21 +00:00
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-02-17 14:22:19 +00:00
|
|
|
<a
|
2026-02-27 16:05:57 +00:00
|
|
|
href="{{ .URL.Sidebar.Operations }}"
|
2026-02-17 14:58:38 +00:00
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
|
data-bs-placement="right"
|
2026-02-27 16:05:57 +00:00
|
|
|
title="Operations"
|
2026-02-17 14:22:19 +00:00
|
|
|
>
|
2026-02-27 16:05:57 +00:00
|
|
|
<div class="menu-icon">{{ template "assign.svg" }}</div>
|
|
|
|
|
<span class="menu-text ms-2">Operations</span>
|
2026-02-07 05:51:21 +00:00
|
|
|
</a>
|
|
|
|
|
</li>
|
2026-02-17 17:29:15 +00:00
|
|
|
<li>
|
|
|
|
|
<a
|
2026-02-27 16:05:57 +00:00
|
|
|
href="{{ .URL.Sidebar.Review }}"
|
2026-02-17 17:29:15 +00:00
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
|
data-bs-placement="right"
|
2026-02-27 16:05:57 +00:00
|
|
|
title="Review"
|
2026-02-17 17:29:15 +00:00
|
|
|
>
|
2026-02-27 16:05:57 +00:00
|
|
|
<div class="menu-icon">{{ template "review.svg" }}</div>
|
|
|
|
|
<span class="menu-text ms-2">Review</span>
|
2026-03-19 16:01:44 +00:00
|
|
|
<span
|
|
|
|
|
x-show="notification_counts.review > 0"
|
|
|
|
|
x-cloak
|
|
|
|
|
class="position-absolute translate-middle badge rounded-pill bg-primary"
|
|
|
|
|
>
|
|
|
|
|
<span
|
2026-03-19 16:55:49 +00:00
|
|
|
x-text="notification_counts.review > 99 ? '99+' : notification_counts.review"
|
2026-03-19 16:01:44 +00:00
|
|
|
></span>
|
|
|
|
|
<span class="visually-hidden">unread notifications</span>
|
|
|
|
|
</span>
|
2026-02-17 17:29:15 +00:00
|
|
|
</a>
|
|
|
|
|
</li>
|
2026-02-07 05:51:21 +00:00
|
|
|
<li>
|
2026-02-17 14:58:38 +00:00
|
|
|
<a
|
2026-02-27 16:05:57 +00:00
|
|
|
href="{{ .URL.Sidebar.Configuration }}"
|
2026-02-17 14:58:38 +00:00
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
|
data-bs-placement="right"
|
2026-02-27 16:05:57 +00:00
|
|
|
title="Configuration"
|
2026-02-17 14:58:38 +00:00
|
|
|
>
|
2026-02-27 16:05:57 +00:00
|
|
|
<div class="menu-icon">{{ template "settings.svg" }}</div>
|
|
|
|
|
<span class="menu-text ms-2">Configuration</span>
|
2026-02-07 05:51:21 +00:00
|
|
|
</a>
|
|
|
|
|
</li>
|
2026-02-25 17:21:37 +00:00
|
|
|
{{ if eq .User.Role "root" }}
|
2026-02-18 07:35:51 +00:00
|
|
|
<li>
|
|
|
|
|
<a
|
|
|
|
|
href="/sudo"
|
|
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
|
data-bs-placement="right"
|
|
|
|
|
title="Sudo"
|
|
|
|
|
>
|
|
|
|
|
<div class="menu-icon">{{ template "god.svg" }}</div>
|
|
|
|
|
<span class="menu-text ms-2">Sudo</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
{{ end }}
|
2026-02-07 05:51:21 +00:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|