diff --git a/templates/base.html b/templates/base.html index 4385b0e..c869e0f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -109,45 +109,22 @@ Dashboard - - - - - Devices - - - + {# Fleet — single sidebar entry for all device-type pages. + The tab strip on each underlying page (Seismographs / + Sound Level Meters / Modems / All Devices) handles + navigation between the device-type-specific layouts. + Active when on any /seismographs, /sound-level-meters, + /modems, /roster, /pair-devices, /unit/* page. #} + {% set _is_fleet = ( + request.url.path in ('/seismographs', '/sound-level-meters', '/modems', '/roster', '/pair-devices') + or request.url.path.startswith('/unit/') + or request.url.path.startswith('/slm/') + ) %} + - Seismographs - - - - - - SFM Events - - - - - - - Sound Level Meters - - - - - - - Modems - - - - - - - Pair Devices + Fleet diff --git a/templates/modems.html b/templates/modems.html index 46dce54..a815e9e 100644 --- a/templates/modems.html +++ b/templates/modems.html @@ -3,6 +3,7 @@ {% block title %}Field Modems - Terra-View{% endblock %} {% block content %} +{% include "partials/fleet_tab_strip.html" %}

diff --git a/templates/partials/fleet_tab_strip.html b/templates/partials/fleet_tab_strip.html new file mode 100644 index 0000000..5fb879a --- /dev/null +++ b/templates/partials/fleet_tab_strip.html @@ -0,0 +1,54 @@ +{# Fleet tab strip. + +Shared header for every page under the "Fleet" sidebar section. Each +underlying page (/roster, /seismographs, /sound-level-meters, /modems) +keeps its own custom layout — this partial just provides the tab +navigation across the top so they feel like one logical area. + +The active tab is detected from request.url.path so deep links work. + +Usage at top of any Fleet-section template: + {% include 'partials/fleet_tab_strip.html' %} +#} +{% set _path = request.url.path %} + diff --git a/templates/roster.html b/templates/roster.html index fed2856..bc6ad66 100644 --- a/templates/roster.html +++ b/templates/roster.html @@ -3,6 +3,7 @@ {% block title %}Devices - Seismo Fleet Manager{% endblock %} {% block content %} +{% include "partials/fleet_tab_strip.html" %}
diff --git a/templates/seismographs.html b/templates/seismographs.html index b7c11a7..4cdae1b 100644 --- a/templates/seismographs.html +++ b/templates/seismographs.html @@ -3,6 +3,7 @@ {% block title %}Seismographs - Seismo Fleet Manager{% endblock %} {% block content %} +{% include "partials/fleet_tab_strip.html" %}

Seismographs

Manage and monitor seismograph units

diff --git a/templates/settings.html b/templates/settings.html index caf7e51..445455f 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -561,6 +561,20 @@
+ +
+
+
SFM Admin
+
+ Raw event database from SFM — cross-project event search, file downloads, debug view. Day-to-day event browsing lives on project / location / unit pages. +
+
+ + Open + +
+
diff --git a/templates/sound_level_meters.html b/templates/sound_level_meters.html index a467dc8..a843612 100644 --- a/templates/sound_level_meters.html +++ b/templates/sound_level_meters.html @@ -3,6 +3,7 @@ {% block title %}Sound Level Meters - Seismo Fleet Manager{% endblock %} {% block content %} +{% include "partials/fleet_tab_strip.html" %}