Changeset ca260d1 in Klonkt for src/views/pages
- Timestamp:
- 09/30/2026 08:08:44 AM (6 hours ago)
- Branches:
- main
- Children:
- 76bd53c
- Parents:
- 19e28ce
- File:
-
- 1 edited
-
src/views/pages/admin-audio.ejs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin-audio.ejs
r19e28ce rca260d1 91 91 var _aaudCopy = t('aaud.copy_click'); 92 92 var _aaudDelConfirm = t('aaud.delete_confirm'); 93 var _aaudFediBtn = t('aaud.fedi_open_btn'); 94 var _aaudFediOn = t('aaud.fedi_open_on'); 95 var _aaudFediConfirm = t('aaud.fedi_open_confirm'); 93 96 %> 94 97 <ul class="ax-list"> … … 125 128 aria-label="<%= t.downloadable ? _aaudDlOn : _aaudDlOff %>" title="<%= t.downloadable ? _aaudDlOn : _aaudDlOff %>" 126 129 style="<%= t.downloadable ? 'color:var(--accent,#6b8f71)' : 'opacity:.5' %>">⬇</button> 130 <% } %> 131 <%# Openbaar op de fediverse, per track (Robin, 30-9). EENRICHTINGS, net 132 als het vinkje in de post-editor: open is een slotje en geen knop meer, 133 want een bestand dat al verspreid is haal je niet terug. Alleen bij een 134 track met een eigen bestand; een link heeft niets om te openen. Een 135 formulier en geen fetch: werkt zonder JS, en data-confirm vraagt het 136 eerst (shell.ejs). %> 137 <% if (t.media_id) { %> 138 <% if (t.fedi_open) { %> 139 <span class="ax-icon-btn ax-fedi-on" role="img" aria-label="<%= _aaudFediOn %>" title="<%= _aaudFediOn %>"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></span> 140 <% } else { %> 141 <form action="/admin/audio/<%= t.id %>/fedi-open" method="post" data-confirm="<%= _aaudFediConfirm %>" class="ax-track-fedi"> 142 <button type="submit" class="ax-icon-btn ax-fedi-off" aria-label="<%= _aaudFediBtn %>" title="<%= _aaudFediBtn %>"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></button> 143 </form> 144 <% } %> 127 145 <% } %> 128 146 <form action="/admin/audio/<%= t.id %>/delete" method="post" data-confirm="<%= _aaudDelConfirm %>" class="ax-track-delete"> … … 247 265 } 248 266 .ax-file-name[data-empty] { color: var(--ink-muted, var(--ink-soft)); } 267 /* Openbaar op de fediverse: dicht is gedimd, net als een uitgezette download; 268 open is de accentkleur en geen knop meer, want terug kan niet. */ 269 .ax-track-fedi { display: inline; } 270 .ax-fedi-off { opacity: .5; } 271 .ax-fedi-off:hover, .ax-fedi-off:focus-visible { opacity: 1; } 272 .ax-fedi-on { color: var(--accent, #6b8f71); cursor: default; } 249 273 250 274 .ax-form-actions {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)