Changeset 9eb6e1b in Klonkt for src/views/partials/remote-actor.ejs
- Timestamp:
- 09/30/2026 06:41:45 AM (2 hours ago)
- Branches:
- main
- Children:
- 86cfa1a
- Parents:
- 3ceaef6
- File:
-
- 1 edited
-
src/views/partials/remote-actor.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/remote-actor.ejs
r3ceaef6 r9eb6e1b 2 2 Een PERSOON van een andere server: wie het is, en de knop om te volgen. 3 3 4 Zelfde reden als remote-object: de zoekbalk en /authorize_interaction laten5 hetzelfde zien, dus staat het op één plek. Het volgen zelf gaat naar6 /authorize_interaction/follow, want daar zit de poort van de guardians7 (shaer-p729) en die hoort niet twee keer geschreven te worden.4 Dezelfde kaart als een post (remote-object), zodat een profiel en een post in 5 de zoekbalk er als familie uitzien en niet als twee formulieren. Het volgen 6 zelf gaat naar /authorize_interaction/follow, want daar zit de poort van de 7 guardians (shaer-p729) en die hoort niet twee keer geschreven te worden. 8 8 9 Verwacht: actor (uit resolveRemoteActor). Optioneel: cancelUrl, siteTitle. 9 Verwacht: actor (uit resolveRemoteActor). Optioneel: compact (de 10 live-preview), siteTitle. 10 11 %> 11 <% const _annuleer = (typeof cancelUrl !== 'undefined' && cancelUrl) ? cancelUrl : '/'; %> 12 <div class="remote-actor"> 13 <% if (actor.actor_icon) { %> 14 <img class="remote-actor-icon" src="<%= actor.actor_icon %>" alt="" loading="lazy" width="48" height="48"> 15 <% } %> 16 <p class="auth-interact-meta"> 17 <%= t('fedi.follow_intro') %> 18 <a href="<%= actor.actor_url %>" rel="nofollow noopener" target="_blank"><strong><%= actor.actor_name %></strong></a> 19 <span class="fedi-handle"><%= actor.actor_handle %></span> 20 </p> 21 </div> 22 <form method="post" action="/authorize_interaction/follow" class="auth-interact-form"> 23 <input type="hidden" name="uri" value="<%= actor.actor_uri %>"> 24 <div class="auth-interact-actions"> 25 <button type="submit" class="btn btn-primary"><%= t('fedi.follow_btn') %></button> 26 <a href="<%= _annuleer %>" class="btn"><%= t('comments.cancel') %></a> 27 </div> 28 </form> 29 <p class="auth-interact-note"><%= t('fedi.remote_as', { site: typeof siteTitle !== 'undefined' ? siteTitle : '' }) %></p> 12 <% 13 const _compact = !!locals.compact; 14 const _initial = String(actor.actor_name || actor.actor_handle || '?').replace(/^@/, '').slice(0, 1).toUpperCase(); 15 %> 16 <article class="rp-card rp-profile<%= _compact ? ' rp-compact' : '' %>"> 17 <header class="rp-head"> 18 <% if (actor.actor_icon) { %> 19 <img class="rp-avatar" src="<%= actor.actor_icon %>" alt="" width="56" height="56" loading="lazy"> 20 <% } else { %> 21 <span class="rp-avatar rp-avatar-empty" aria-hidden="true"><%= _initial %></span> 22 <% } %> 23 <div class="rp-who"> 24 <a class="rp-name" href="<%= actor.actor_url || actor.actor_uri %>" rel="nofollow noopener" target="_blank"><%= actor.actor_name || actor.actor_handle %></a> 25 <span class="rp-handle"><%= actor.actor_handle %></span> 26 </div> 27 </header> 28 <footer class="rp-actions"> 29 <form method="post" action="/authorize_interaction/follow"> 30 <input type="hidden" name="uri" value="<%= actor.actor_uri %>"> 31 <button type="submit" class="rp-act rp-primary"> 32 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><line x1="19" y1="8" x2="19" y2="14"/><line x1="22" y1="11" x2="16" y2="11"/></svg> 33 <span><%= t('fedi.follow_btn') %></span> 34 </button> 35 </form> 36 <a class="rp-act rp-src" href="<%= actor.actor_url || actor.actor_uri %>" target="_blank" rel="nofollow noopener" title="<%= t('fedi.view_profile') %>"> 37 <svg viewBox="0 0 24 24" 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> 38 <span class="rp-act-label"><%= t('fedi.profile_short') %></span> 39 </a> 40 </footer> 41 </article> 42 <% if (!_compact) { %> 43 <p class="rp-as"><%= t('fedi.remote_as', { site: typeof siteTitle !== 'undefined' ? siteTitle : '' }) %></p> 44 <% } %>
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)