Changeset 476d6e7 in Klonkt for src/views/pages
- Timestamp:
- 07/16/2026 12:20:51 PM (8 weeks ago)
- Branches:
- main
- Children:
- 1cc8c85
- Parents:
- af21002
- git-author:
- Robin <roboburr@…> (07/13/2026 05:36:18 AM)
- git-committer:
- Robin <roboburr@…> (07/16/2026 12:20:51 PM)
- Location:
- src/views/pages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/news.ejs
raf21002 r476d6e7 110 110 %> 111 111 <% if (_nsfwText) { %> 112 <div class="tl-content nsfw-media"><span 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></span><%- p.content %></div>112 <div class="tl-content nsfw-media"><span class="nsfw-veil"><%- include('../partials/nsfw-veil', { cw: p.cw }) %></span><%- p.content %></div> 113 113 <% } else { %> 114 114 <div class="tl-content"><%- p.content %></div> … … 127 127 players here. Posts without a Klonkt embed (e.g. a plain remote audio) keep them. */ %> 128 128 <% if (!p.embedHtml && !p.embedUrl) { auds.forEach(function(m){ %><audio class="tl-media-audio" src="<%= m.url %>" controls preload="none"></audio><% }); } %> 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><% } %>129 <% if (_nsfwVisual) { %><div class="nsfw-veil"><%- include('../partials/nsfw-veil', { cw: p.cw }) %></div></div><% } %> 130 130 131 131 <% if (p.embedHtml) { %><div class="tl-embed"><%- p.embedHtml %></div><% } %> -
src/views/pages/post.ejs
raf21002 r476d6e7 209 209 hx-push-url="/<%= rp.slug %>" hx-indicator="#pcms-loading"<% } %>> 210 210 <% if (rp.cover_image_url) { %> 211 <span class="post-related-cover<%= rp.nsfw ? ' nsfw-media' : '' %>" aria-hidden="true"><img class="post-related-img" src="<%= rp.cover_image_url %>" alt="" loading="lazy" decoding="async"<% if (rp.cover_video_url) { %> data-ios-mp4="<%= rp.cover_video_url %>"<% } %>><% if (rp.nsfw) { %><span class="nsfw-veil">< span class="nsfw-veil-label">🔞 <%= rp.content_warning || t('post.nsfw_warning') %></span><span class="nsfw-veil-btn"><%= t('post.nsfw_show') %></span></span><% } %></span>211 <span class="post-related-cover<%= rp.nsfw ? ' nsfw-media' : '' %>" aria-hidden="true"><img class="post-related-img" src="<%= rp.cover_image_url %>" alt="" loading="lazy" decoding="async"<% if (rp.cover_video_url) { %> data-ios-mp4="<%= rp.cover_video_url %>"<% } %>><% if (rp.nsfw) { %><span class="nsfw-veil"><%- include('../partials/nsfw-veil', { cw: rp.content_warning }) %></span><% } %></span> 212 212 <% } else { %> 213 <span class="post-related-cover post-related-cover--empty<%= rp.nsfw ? ' nsfw-media' : '' %>" aria-hidden="true"><% if (rp.nsfw) { %><span class="nsfw-veil">< span class="nsfw-veil-label">🔞 <%= rp.content_warning || t('post.nsfw_warning') %></span><span class="nsfw-veil-btn"><%= t('post.nsfw_show') %></span></span><% } %></span>213 <span class="post-related-cover post-related-cover--empty<%= rp.nsfw ? ' nsfw-media' : '' %>" aria-hidden="true"><% if (rp.nsfw) { %><span class="nsfw-veil"><%- include('../partials/nsfw-veil', { cw: rp.content_warning }) %></span><% } %></span> 214 214 <% } %> 215 215 <span class="post-related-meta">
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)