~homeworkprod/byceps

6b7538c21a787153732171858a67c3e141e85d89 — Jochen Kupperschmidt 6 months ago 2032a0f
Wrap admin main tabs in `nav` element
M byceps/blueprints/admin/core/templates/macros/admin.html => byceps/blueprints/admin/core/templates/macros/admin.html +5 -3
@@ 16,13 16,15 @@


{% macro render_main_tabs(navigation, current_tab) -%}
  <ol class="main-tabs">
  <nav class="main-tabs">
    <ol>
    {%- for item in navigation.get_items() %}
      {%- with is_current = (item.id is not none) and (item.id == current_tab) %}
    <li><a href="{{ item.endpoint }}"{% if is_current %} class="current"{% endif -%}>{% if item.icon %}{{ render_icon(item.icon) }} {% endif %}{{ item.label }}</a></li>
      <li><a href="{{ item.endpoint }}"{% if is_current %} class="current"{% endif -%}>{% if item.icon %}{{ render_icon(item.icon) }} {% endif %}{{ item.label }}</a></li>
      {%- endwith %}
    {%- endfor %}
  </ol>
    </ol>
  </nav>
{%- endmacro %}



M byceps/static/style/admin.css => byceps/static/style/admin.css +1 -1
@@ 345,7 345,7 @@ nav.main li {

/* tabs above main content area */

.main-tabs {
.main-tabs ol {
  display: flex;
  list-style: none;
  margin: -8px 12px 0 12px;