Changeset 3597763 in Klonkt for src/views/partials
- Timestamp:
- 07/26/2026 09:37:48 AM (6 weeks ago)
- Branches:
- main
- Children:
- ef1853c
- Parents:
- b5c2538
- Location:
- src/views/partials
- Files:
-
- 1 added
- 1 edited
-
quote-card.ejs (added)
-
tl-item.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/tl-item.ejs
rb5c2538 r3597763 1 1 <li class="tl-item"> 2 <% if (p.reblog_name) { %><div class="tl-boost-by"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg> <strong><% = p.reblog_name%></strong> <%= t('tl.boosted') %></div><% } %>2 <% if (p.reblog_name) { %><div class="tl-boost-by"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg> <strong><%- emojiName(p.reblog_name, p.reblog_emoji_json) %></strong> <%= t('tl.boosted') %></div><% } %> 3 3 <div class="tl-head"> 4 4 <span class="tl-avatar"><% if (p.author_icon) { %><img src="<%= avatar(p.author_icon, 96) %>" alt="" loading="lazy"><% } else { %><%= (p.author_name || '?').charAt(0).toUpperCase() %><% } %></span> 5 5 <span class="tl-id"> 6 <a class="tl-author" href="<%= p.author_url || p.author_uri %>" target="_blank" rel="nofollow noopener"><% = p.author_name%></a>6 <a class="tl-author" href="<%= p.author_url || p.author_uri %>" target="_blank" rel="nofollow noopener"><%- emojiName(p.author_name, p.author_emoji_json) %></a> 7 7 <span class="tl-handle"><%= p.author_handle %></span> 8 8 </span> … … 19 19 %> 20 20 <% if (_nsfwText) { %> 21 <div class="tl-content nsfw-media"><span class="nsfw-veil"><%- include('../partials/nsfw-veil', { cw: p.cw }) %></span><%- p.content%></div>21 <div class="tl-content nsfw-media"><span class="nsfw-veil"><%- include('../partials/nsfw-veil', { cw: p.cw }) %></span><%- emojiHtml(p.content, p.emoji_json) %></div> 22 22 <% } else { %> 23 <div class="tl-content"><%- p.content%></div>23 <div class="tl-content"><%- emojiHtml(p.content, p.emoji_json) %></div> 24 24 <% } %> 25 <% var _quote = noteQuote(p.quote_json); if (_quote) { %><%- include('../partials/quote-card', { q: _quote }) %><% } %> 25 26 <% if (_nsfwVisual) { %><div class="nsfw-media"><% } %> 26 27 <% if (imgs.length) { %>
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)