admin_tabs.html
14 lignes · 656 octets
{# Tab bar shared across every `/admin/fediverse/*` screen. #} {# Expects `tabs: Vec<AdminTabDTO>` and `active_tab: String` on the #} {# template context. The `tab-active` class is applied to the entry #} {# whose slug equals `active_tab`. #} <div role="tablist" class="tabs tabs-boxed mb-6" aria-label="federation admin sections"> {% for tab in tabs %} <a role="tab" class="tab{% if tab.slug == active_tab %} tab-active{% endif %}" href="{{ tab.href }}" {% if tab.slug == active_tab %}aria-current="page"{% endif %} >{{ tab.label }}</a> {% endfor %} </div>
GitRust