Changeset 907a013 in Klonkt
- Timestamp:
- 06/28/2026 09:59:33 AM (2 months ago)
- Branches:
- main
- Children:
- 2e62848
- Parents:
- d2b7247
- File:
-
- 1 edited
-
src/views/pages/news.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/news.ejs
rd2b7247 r907a013 31 31 var vids = media.filter(function(m){ return m && m.url && m.type && /^video\//.test(m.type); }); 32 32 var auds = media.filter(function(m){ return m && m.url && m.type && /^audio\//.test(m.type); }); 33 var _nsfwVisual = !!p.nsfw && (imgs.length || vids.length || auds.length); 33 34 %> 35 <% if (_nsfwVisual) { %><div class="nsfw-media"><% } %> 34 36 <% if (imgs.length) { %> 35 37 <div class="tl-media"> … … 41 43 <% vids.forEach(function(m){ %><video class="tl-media-video" src="<%= m.url %>" controls preload="metadata" playsinline></video><% }); %> 42 44 <% auds.forEach(function(m){ %><audio class="tl-media-audio" src="<%= m.url %>" controls preload="none"></audio><% }); %> 45 <% 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><% } %> 43 46 44 47 <% if (p.embedHtml) { %><div class="tl-embed"><%- p.embedHtml %></div><% } %>
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)