mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
feat: Add back button to navigation on dashboard pages
Add browser history back button alongside existing dashboard links on vessels, aircraft, network monitor, and remote agents pages. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
<input type="checkbox" id="showAllAgents" onchange="toggleShowAllAgents()"> All
|
<input type="checkbox" id="showAllAgents" onchange="toggleShowAllAgents()"> All
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<a href="#" onclick="history.back(); return false;" class="back-link">Back</a>
|
||||||
<a href="/?mode=aircraft" class="back-link">Main Dashboard</a>
|
<a href="/?mode=aircraft" class="back-link">Main Dashboard</a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -223,7 +223,13 @@
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Back button */
|
/* Navigation links */
|
||||||
|
.nav-links {
|
||||||
|
display: flex;
|
||||||
|
gap: 16px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.back-link {
|
.back-link {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -231,7 +237,6 @@
|
|||||||
color: var(--accent-cyan);
|
color: var(--accent-cyan);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-link:hover {
|
.back-link:hover {
|
||||||
@@ -296,12 +301,21 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="agents-container">
|
<div class="agents-container">
|
||||||
<a href="/" class="back-link">
|
<div class="nav-links">
|
||||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
<a href="#" onclick="history.back(); return false;" class="back-link">
|
||||||
<path d="M19 12H5M12 19l-7-7 7-7"/>
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
</svg>
|
<path d="M19 12H5M12 19l-7-7 7-7"/>
|
||||||
Back to Dashboard
|
</svg>
|
||||||
</a>
|
Back
|
||||||
|
</a>
|
||||||
|
<a href="/" class="back-link">
|
||||||
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
|
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
||||||
|
<polyline points="9 22 9 12 15 12 15 22"/>
|
||||||
|
</svg>
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="agents-header">
|
<div class="agents-header">
|
||||||
<h1>Remote Agents</h1>
|
<h1>Remote Agents</h1>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
<input type="checkbox" id="showAllAgents" onchange="toggleShowAllAgents()"> All
|
<input type="checkbox" id="showAllAgents" onchange="toggleShowAllAgents()"> All
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<a href="#" onclick="history.back(); return false;" class="back-link">Back</a>
|
||||||
<a href="/" class="back-link">Main Dashboard</a>
|
<a href="/" class="back-link">Main Dashboard</a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -514,6 +514,7 @@
|
|||||||
<span>// MULTI-AGENT VIEW</span>
|
<span>// MULTI-AGENT VIEW</span>
|
||||||
</div>
|
</div>
|
||||||
<nav class="header-nav">
|
<nav class="header-nav">
|
||||||
|
<a href="#" onclick="history.back(); return false;">Back</a>
|
||||||
<a href="/">Dashboard</a>
|
<a href="/">Dashboard</a>
|
||||||
<a href="/controller/manage">Manage Agents</a>
|
<a href="/controller/manage">Manage Agents</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user