[Perl] DAQ system for the FAPG.
refactor use standard Bootstrap container on all pages
Remove the wide_layout stash variable and container-wide class. All pages now use the standard Bootstrap container for consistent margins.
Changed files
roles/dashboard/lib/FAPG/DAQ/Dashboard/Controller/Dashboard.pm
@@ -27,7 +27,6 @@
27
27
$self->render(
28
28
template => 'dashboard/probes',
29
29
probes => $self->probes,
30
Removed:
wide_layout => 1,
31
30
nav_page => 'probes',
32
31
breadcrumbs =>
33
32
[ { label => 'Home', href => '/' }, { label => 'Probes' }, ],
roles/dashboard/t/01-graph-page.t
@@ -57,7 +57,7 @@
57
57
'nav[aria-label="Breadcrumb"] a[href="/"]')
58
58
->text_is(
59
59
'nav[aria-label="Breadcrumb"] [aria-current="page"]', 'Probes' )
60
Removed:
->element_exists('main.container-wide')
60
Added:
->element_exists('main.container')
61
61
->element_exists('div.probes-grid')
62
62
->element_exists('div.toolbar-items div.graph-control')
63
63
->element_exists('.navbar-nav a.nav-link.active[href="/probes"][aria-current="page"]');
roles/dashboard/templates/layouts/default.html.ep
@@ -70,7 +70,7 @@
70
70
</div>
71
71
</nav>
72
72
73
Removed:
<main class="<%= stash('wide_layout') ? 'container-wide' : 'container' %>">
73
Added:
<main class="container">
74
74
%= include 'dashboard/toolbar', breadcrumbs => (stash('breadcrumbs') // []), graph_control_aria_label => stash('graph_control_aria_label')
75
75
<%= content %>
76
76
</main>