Changeset 2306abd in Klonkt
- Timestamp:
- 06/30/2026 01:47:28 PM (2 months ago)
- Branches:
- main
- Children:
- 292734a
- Parents:
- 5924bbf
- File:
-
- 1 edited
-
src/views/pages/news.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/news.ejs
r5924bbf r2306abd 123 123 <% } %> 124 124 <% vids.forEach(function(m){ %><video class="tl-media-video" src="<%= m.url %>" controls preload="metadata" playsinline></video><% }); %> 125 <% auds.forEach(function(m){ %><audio class="tl-media-audio" src="<%= m.url %>" controls preload="none"></audio><% }); %> 125 <% /* A Klonkt audio post carries an embed player (embedHtml/embedUrl) that already 126 covers these tracks, so don't ALSO render the raw Audio attachments as bare 127 players here. Posts without a Klonkt embed (e.g. a plain remote audio) keep them. */ %> 128 <% if (!p.embedHtml && !p.embedUrl) { auds.forEach(function(m){ %><audio class="tl-media-audio" src="<%= m.url %>" controls preload="none"></audio><% }); } %> 126 129 <% if (_nsfwVisual) { %><div class="nsfw-veil"><span class="nsfw-veil-label">🔞 <%= p.cw || t('post.nsfw_warning') %></span><span class="nsfw-veil-btn"><%= t('post.nsfw_show') %></span></div></div><% } %> 127 130
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)