15 lines
1.0 KiB
ERB
15 lines
1.0 KiB
ERB
<%# The debug pages' switcher, on top of each (status, CAN, CAN trace, GNSS simulation). %>
|
|
<style>
|
|
.debug-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: -16px -16px 12px; padding: 6px 12px; border-bottom: 1px solid color-mix(in srgb, CanvasText 15%, transparent); font-size: 0.9rem; }
|
|
.debug-nav a { padding: 6px 12px; border-radius: 6px; color: inherit; text-decoration: none; }
|
|
.debug-nav a:hover { background: color-mix(in srgb, CanvasText 8%, transparent); }
|
|
.debug-nav a[aria-current] { background: color-mix(in srgb, CanvasText 14%, transparent); font-weight: 600; }
|
|
.debug-nav .map { margin-left: auto; }
|
|
</style>
|
|
<nav class="debug-nav">
|
|
<% [["/status.html", "Server status"], ["/can.html", "CAN analyzer"], ["/trace.html", "CAN trace"], ["/keypad.html", "Keypad"], ["/sim.html", "GNSS simulation"]].each do |href, label| %>
|
|
<a href="<%= href %>"<%= ' aria-current="page"' if request.path == href %>><%= label %></a>
|
|
<% end %>
|
|
<a class="map" href="/" target="maptool">The map ↗</a>
|
|
</nav>
|