%
// Admin: Playlists management
// Shows all playlists for current site, with new/edit/delete actions.
// The editor itself is the same modal that's used from the post-editor.
const _csrf = (typeof csrfToken !== 'undefined' && csrfToken) || '';
%>
<%# Sticky-on-mobile create button โ easier reach than a header button. %>
<% if (!playlists.length) { %>
๐
<%= t('apl.none') %>
<%= t('apl.none_sub') %>
<% } else { %>
<%
// Pre-fetch loop labels (defensive โ keep `t` calls out of the loop body).
var _aplPlaylist = t('apl.pill_playlist');
var _aplAlbum = t('apl.pill_album');
var _aplTrack = t('apl.track');
var _aplTracks = t('apl.tracks');
var _aplCopy = t('apl.copy_click');
var _aplEdit = t('apl.edit');
var _aplDelete = t('apl.delete');
%>