[Perl] DAQ system for the FAPG.
feat remove status indicator LED from navbar
Remove the status diode link and hidden status-item spans from the top navbar. Status is still accessible via the /status page.
roles/dashboard/t/00-homepage.t
@@ -17,8 +17,6 @@
17
17
->text_is( '.navbar-nav a.nav-link[href="/insights"]', 'Insights' )
18
18
->text_is( '.navbar-nav a.nav-link[href="/downloads"]', 'Downloads' )
19
19
->element_exists_not('.navbar-nav a.nav-link.active')
20
Removed:
->element_exists(
21
Removed:
'a.header-status-link[href="/status"][data-header-status]')
22
20
->element_exists_not('nav[aria-label="Breadcrumb"]')
23
21
->element_exists('h1.display-5')
24
22
->element_exists('nav[aria-label="Quick links"] a[href="/probes"]')
roles/dashboard/templates/layouts/default.html.ep
@@ -24,21 +24,6 @@
24
24
<a class="navbar-brand fw-bold text-success" href="/">FAPG</a>
25
25
26
26
<div class="d-flex align-items-center gap-2 ms-auto order-md-last">
27
Removed:
<a
28
Removed:
class="header-status-link is-unknown"
29
Removed:
href="/status"
30
Removed:
data-header-status
31
Removed:
aria-label="DAQ status unknown"
32
Removed:
title="Checking DAQ status">
33
Removed:
<span class="header-status-led"></span>
34
Removed:
</a>
35
Removed:
% for my $item (status_items()->@*) {
36
Removed:
<span
37
Removed:
hidden
38
Removed:
data-header-status-item="<%= $item->{key} %>"
39
Removed:
data-header-status-label="<%= $item->{label} %>"></span>
40
Removed:
% }
41
Removed:
42
27
<button
43
28
class="navbar-toggler"
44
29
type="button"