- Timestamp:
- 06/26/2026 01:13:21 PM (3 months ago)
- Branches:
- main
- Children:
- 54d2f98
- Parents:
- c7c7f02
- Location:
- src/views/pages
- Files:
-
- 2 edited
-
authorize-interaction.ejs (modified) (3 diffs)
-
post.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/authorize-interaction.ejs
rc7c7f02 rb6cdc3d 23 23 <h1 class="auth-interact-title">★ <%= t('fedi.liked_title') %></h1> 24 24 <p class="auth-interact-note"><%= t('fedi.liked_done') %></p> 25 <p class="auth-interact-actions"> 26 <% if (uri) { %><a class="btn" href="<%= uri %>" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a><% } %> 27 <a class="btn btn-primary" href="/"><%= t('fedi.remote_back') %></a> 28 </p> 29 <% } else if (typeof boosted !== 'undefined' && boosted) { %> 30 <h1 class="auth-interact-title">🔁 <%= t('fedi.boosted_title') %></h1> 31 <p class="auth-interact-note"><%= t('fedi.boosted_done') %></p> 25 32 <p class="auth-interact-actions"> 26 33 <% if (uri) { %><a class="btn" href="<%= uri %>" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a><% } %> … … 77 84 <img class="auth-interact-img" src="<%= im %>" alt="" loading="lazy"> 78 85 <% }); %> 79 <% if (target.url || uri) { %>80 <p class="auth-interact-orig"><a href="<%= target.url || uri %>" target="_blank" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a></p>81 <% } %>82 86 </blockquote> 83 <form method="post" action="/authorize_interaction/like" class="auth-interact-like"> 84 <input type="hidden" name="uri" value="<%= uri %>"> 85 <button type="submit" class="btn btn-primary auth-like-btn">★ <%= t('fedi.like_btn') %></button> 86 </form> 87 <% if (target.url || uri) { %> 88 <a class="auth-view-src" href="<%= target.url || uri %>" target="_blank" rel="nofollow noopener"> 89 <svg viewBox="0 0 24 24" width="17" height="17" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7"/><path d="M7 7h10v10"/></svg> 90 <span><%= t('fedi.remote_view_original') %></span> 91 </a> 92 <% } %> 93 <div class="auth-interact-react"> 94 <form method="post" action="/authorize_interaction/like"> 95 <input type="hidden" name="uri" value="<%= uri %>"> 96 <button type="submit" class="btn btn-primary auth-like-btn">★ <%= t('fedi.like_btn') %></button> 97 </form> 98 <form method="post" action="/authorize_interaction/boost"> 99 <input type="hidden" name="uri" value="<%= uri %>"> 100 <button type="submit" class="btn auth-boost-btn">🔁 <%= t('fedi.boost_btn') %></button> 101 </form> 102 </div> 87 103 <p class="auth-interact-or"><%= t('fedi.or_reply') %></p> 88 104 <p class="auth-interact-where">💬 <%= t('fedi.reply_where') %></p> … … 124 140 .auth-interact-orig { margin: .75rem 0 0; font-size: .85rem; } 125 141 .auth-interact-orig a { color: var(--accent, #06c); } 142 .auth-view-src { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .6rem 1rem; 143 border: 1px solid color-mix(in srgb, var(--accent, #888) 45%, transparent); border-radius: 12px; 144 background: color-mix(in srgb, var(--accent, #888) 10%, transparent); color: var(--accent, #06c); 145 text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .15s, border-color .15s; } 146 .auth-view-src:hover { background: color-mix(in srgb, var(--accent, #888) 18%, transparent); border-color: var(--accent, #888); } 147 .auth-interact-react { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .25rem; } 148 .auth-interact-react form { margin: 0; } 149 .auth-boost-btn { white-space: nowrap; } 126 150 .fedi-manage { list-style: none; padding: 0; margin: 1.25rem 0 1rem; display: flex; flex-direction: column; gap: .7rem; } 127 151 .fedi-manage-item { padding: .85rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--ink, #000) 4%, transparent); border: 1px solid color-mix(in srgb, var(--ink, #000) 9%, transparent); } -
src/views/pages/post.ejs
rc7c7f02 rb6cdc3d 74 74 <h2 class="comments-heading"><%= t('fedi.heading') %></h2> 75 75 <div class="fedi-stats"> 76 < button type="button" class="fedi-stat fedi-stat-btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-ph="<%= t('fedi.remote_ph') %>" title="<%= t('like.fedi_title') %>">76 <span class="fedi-stat" title="<%= t('fedi.likes') %>"> 77 77 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> 78 78 <span><%= _fedi.likeCount %></span> 79 </ button>79 </span> 80 80 <span class="fedi-stat" title="<%= t('fedi.boosts') %>"> 81 81 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" 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> … … 96 96 <div class="post-fediverse-cta"> 97 97 <button type="button" class="btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-ph="<%= t('fedi.remote_ph') %>"> 98 <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"><polyline points=" 9 17 4 12 9 7"/><path d="M20 18v-2a4 4 0 0 0-4-4H4"/></svg>99 <%= t('fedi.remote_ reply') %>98 <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"><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> 99 <%= t('fedi.remote_interact') %> 100 100 </button> 101 101 </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)