source: Klonkt/src/views/partials/media-tabs.ejs@ 2ab99c0

main
Last change on this file since 2ab99c0 was 2ab99c0, checked in by roboburr <roboburr@…>, 2 months ago

feat(media): shared Media tab bar across Images / Audio / Playlists

A new partials/media-tabs.ejs renders the Afbeeldingen | Audio | Playlists tabs (active one
highlighted) and is included on /admin/media, /admin/audio and /admin/playlists — so you can move
between all three from any of them. Playlists is now a tab too.

Co-Authored-By: Claude <noreply@…>

  • Property mode set to 100644
File size: 1.0 KB
Line 
1<%# Shared Media tab bar (Afbeeldingen / Audio / Playlists). Params: active = 'images'|'audio'|'playlists'; audioOn (bool, default true). %>
2<% var _a = (typeof audioOn === 'undefined') ? true : audioOn; %>
3<nav class="media-tabs" aria-label="Media" style="display:flex;gap:.4rem;margin:0 0 1.25rem;border-bottom:1px solid var(--rule,rgba(128,128,128,.3));flex-wrap:wrap;">
4 <a href="/admin/media" class="btn" style="border-radius:8px 8px 0 0;<%= active === 'images' ? 'border-bottom:2px solid var(--accent,#e8b04b);font-weight:600;' : 'opacity:.8;' %>"><%= t('admin.media_images') %></a>
5 <% if (_a) { %>
6 <a href="/admin/audio" class="btn" style="border-radius:8px 8px 0 0;<%= active === 'audio' ? 'border-bottom:2px solid var(--accent,#e8b04b);font-weight:600;' : 'opacity:.8;' %>"><%= t('admin.b_audio') %></a>
7 <a href="/admin/playlists" class="btn" style="border-radius:8px 8px 0 0;<%= active === 'playlists' ? 'border-bottom:2px solid var(--accent,#e8b04b);font-weight:600;' : 'opacity:.8;' %>"><%= t('admin.b_playlists') %></a>
8 <% } %>
9</nav>
Note: See TracBrowser for help on using the repository browser.