| [3d7312a] | 1 | <div class="auth-interact">
|
|---|
| [7d932ce] | 2 | <% if (typeof manage !== 'undefined' && manage) { %>
|
|---|
| [9e5438e] | 3 | <%- include('../partials/fedi-tabs', { active: 'reacties' }) %>
|
|---|
| [7d932ce] | 4 | <h1 class="auth-interact-title"><%= t('fedi.manage_title') %></h1>
|
|---|
| [dcff893] | 5 |
|
|---|
| 6 | <%# Interact bookmarklet — drag to bookmarks bar, then click on any fediverse post. %>
|
|---|
| 7 | <div class="fedi-bm">
|
|---|
| 8 | <a class="fedi-bm-btn" id="fedi-bm-btn" href="#" draggable="true" title="<%= t('fedi.bm_help') %>">
|
|---|
| 9 | <svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/></svg>
|
|---|
| 10 | <%= t('fedi.bm_label') %>
|
|---|
| 11 | </a>
|
|---|
| 12 | <p class="fedi-bm-help"><%= t('fedi.bm_help') %></p>
|
|---|
| 13 | </div>
|
|---|
| [0475b13] | 14 | <%# Het script van deze pagina staat in assets/js/mod/authorize-interaction.js (shaer-bqr). %>
|
|---|
| [5b47619] | 15 | <% if (!manage.length) { %>
|
|---|
| 16 | <p class="auth-interact-note"><%= t('fedi.manage_empty') %></p>
|
|---|
| 17 | <% } else { %>
|
|---|
| 18 | <ul class="fedi-manage">
|
|---|
| 19 | <% manage.forEach(function(m){ %>
|
|---|
| 20 | <li class="fedi-manage-item">
|
|---|
| [2f42b60] | 21 | <div class="fedi-manage-head">
|
|---|
| 22 | <span class="fedi-manage-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 17 4 12 9 7"/><path d="M20 18v-2a4 4 0 0 0-4-4H4"/></svg></span>
|
|---|
| 23 | <% if (m.to_handle) { %><span class="fedi-manage-to"><%= m.to_handle %></span><% } %>
|
|---|
| 24 | <% if (m.created_at && typeof formatDateTime === 'function') { %><span class="fedi-manage-time"><%= formatDateTime(m.created_at) %></span><% } %>
|
|---|
| 25 | </div>
|
|---|
| [5b47619] | 26 | <div class="fedi-manage-content"><%- m.content %></div>
|
|---|
| 27 | <div class="fedi-manage-foot">
|
|---|
| [04c70fc] | 28 | <button type="button" class="fedi-edit-btn" aria-expanded="false"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg> <%= t('fedi.edit') %></button>
|
|---|
| [ace5a9b] | 29 | <% if (m.in_reply_to) { %>
|
|---|
| 30 | <a class="fedi-goto-btn" href="<%= m.in_reply_to %>" target="_blank" rel="nofollow noopener"><svg viewBox="0 0 24 24" width="13" height="13" 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> <%= t('fedi.goto_post') %></a>
|
|---|
| [04c70fc] | 31 | <% } %>
|
|---|
| [f7d142f] | 32 | <form method="post" action="/fediverse/<%= m.id %>/delete" class="fedi-del-form" data-confirm="<%= t('fedi.delete_confirm') %>">
|
|---|
| [2f42b60] | 33 | <button type="submit" class="fedi-del-btn"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg> <%= t('comments.delete') %></button>
|
|---|
| [7d932ce] | 34 | </form>
|
|---|
| 35 | </div>
|
|---|
| [5190152] | 36 | <div class="fedi-edit-form">
|
|---|
| 37 | <%- include('../partials/reply-editor', {
|
|---|
| 38 | action: '/fediverse/' + m.id + '/edit',
|
|---|
| 39 | placeholder: t('fedi.reply_ph'),
|
|---|
| 40 | submitLabel: t('fedi.save_edit'),
|
|---|
| 41 | rows: 3,
|
|---|
| 42 | initialHtml: m.content,
|
|---|
| 43 | initialText: m.editable,
|
|---|
| 44 | defaultLang: m.language,
|
|---|
| 45 | noAttach: true,
|
|---|
| 46 | }) %>
|
|---|
| 47 | </div>
|
|---|
| [5b47619] | 48 | </li>
|
|---|
| 49 | <% }); %>
|
|---|
| 50 | </ul>
|
|---|
| [0475b13] | 51 |
|
|---|
| [5b47619] | 52 | <% } %>
|
|---|
| 53 | <p class="auth-interact-note"><a href="/"><%= t('fedi.remote_back') %></a></p>
|
|---|
| [0aa23cf] | 54 | <% } else if (typeof liked !== 'undefined' && liked) { %>
|
|---|
| 55 | <h1 class="auth-interact-title">★ <%= t('fedi.liked_title') %></h1>
|
|---|
| 56 | <p class="auth-interact-note"><%= t('fedi.liked_done') %></p>
|
|---|
| 57 | <p class="auth-interact-actions">
|
|---|
| [2279f80] | 58 | <% if (uri) { %><a class="btn" href="<%= uri %>" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a><% } %>
|
|---|
| [0aa23cf] | 59 | <a class="btn btn-primary" href="/"><%= t('fedi.remote_back') %></a>
|
|---|
| 60 | </p>
|
|---|
| [b6cdc3d] | 61 | <% } else if (typeof boosted !== 'undefined' && boosted) { %>
|
|---|
| 62 | <h1 class="auth-interact-title">🔁 <%= t('fedi.boosted_title') %></h1>
|
|---|
| 63 | <p class="auth-interact-note"><%= t('fedi.boosted_done') %></p>
|
|---|
| 64 | <p class="auth-interact-actions">
|
|---|
| 65 | <% if (uri) { %><a class="btn" href="<%= uri %>" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a><% } %>
|
|---|
| 66 | <a class="btn btn-primary" href="/"><%= t('fedi.remote_back') %></a>
|
|---|
| 67 | </p>
|
|---|
| [8ad1784] | 68 | <% } else if (typeof followed !== 'undefined' && followed) { %>
|
|---|
| 69 | <h1 class="auth-interact-title"><%= t('fedi.followed_title') %></h1>
|
|---|
| 70 | <p class="auth-interact-note"><%= t('fedi.followed_done') %></p>
|
|---|
| 71 | <p class="auth-interact-actions">
|
|---|
| 72 | <% if (uri) { %><a class="btn" href="<%= uri %>" rel="nofollow noopener"><%= t('fedi.view_profile') %></a><% } %>
|
|---|
| 73 | <a class="btn btn-primary" href="/"><%= t('fedi.remote_back') %></a>
|
|---|
| 74 | </p>
|
|---|
| [7d932ce] | 75 | <% } else if (typeof sent !== 'undefined' && sent) { %>
|
|---|
| [41a7637] | 76 | <h1 class="auth-interact-title"><%= t('fedi.remote_sent_title') %></h1>
|
|---|
| 77 | <p class="auth-interact-note"><%= t('fedi.remote_sent') %></p>
|
|---|
| 78 | <p class="auth-interact-actions">
|
|---|
| [2902320] | 79 | <% if (uri) { %><a class="btn btn-primary" href="<%= uri %>" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a><% } %>
|
|---|
| 80 | <a class="btn" href="/"><%= t('fedi.remote_back') %></a>
|
|---|
| [41a7637] | 81 | </p>
|
|---|
| [1c2dcba] | 82 | <% } else if (typeof reported !== 'undefined' && reported) { %>
|
|---|
| 83 | <h1 class="auth-interact-title">🚩 <%= t('fedi.reported_title') %></h1>
|
|---|
| 84 | <p class="auth-interact-note"><%= t('fedi.reported_done') %></p>
|
|---|
| 85 | <p class="auth-interact-actions">
|
|---|
| 86 | <a class="btn" href="/"><%= t('fedi.remote_back') %></a>
|
|---|
| 87 | </p>
|
|---|
| [667fb41] | 88 | <% } else if (typeof voted !== 'undefined' && voted) { %>
|
|---|
| 89 | <h1 class="auth-interact-title">📊 <%= t('poll.voted_title') %></h1>
|
|---|
| 90 | <p class="auth-interact-note"><%= t('poll.voted_done') %></p>
|
|---|
| 91 | <p class="auth-interact-actions">
|
|---|
| 92 | <% if (uri) { %><a class="btn btn-primary" href="<%= uri %>" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a><% } %>
|
|---|
| 93 | <a class="btn" href="/"><%= t('fedi.remote_back') %></a>
|
|---|
| 94 | </p>
|
|---|
| [8ad1784] | 95 | <% } else if (typeof followTarget !== 'undefined' && followTarget) { %>
|
|---|
| 96 | <h1 class="auth-interact-title"><%= t('fedi.follow_heading') %></h1>
|
|---|
| [3ceaef6] | 97 | <%- include('../partials/remote-actor', { actor: followTarget, cancelUrl: '/', siteTitle: siteTitle }) %>
|
|---|
| [41a7637] | 98 | <% } else { %>
|
|---|
| [3d7312a] | 99 | <h1 class="auth-interact-title"><%= t('fedi.remote_title') %></h1>
|
|---|
| 100 |
|
|---|
| 101 | <% if (!target) { %>
|
|---|
| 102 | <p class="auth-interact-note"><%= t('fedi.remote_notfound') %></p>
|
|---|
| 103 | <form method="get" action="/authorize_interaction" class="auth-interact-form">
|
|---|
| 104 | <input type="url" name="uri" placeholder="https://…/een-post" value="<%= uri || '' %>" required>
|
|---|
| 105 | <button type="submit" class="btn btn-primary"><%= t('fedi.remote_load') %></button>
|
|---|
| 106 | </form>
|
|---|
| 107 | <% } else { %>
|
|---|
| [9eb6e1b] | 108 | <%- include('../partials/remote-object', { target: target, uri: uri, reacted: (typeof reacted !== 'undefined' ? reacted : { liked: false, boosted: false }), siteTitle: siteTitle, replyOpen: typeof replyOpen !== 'undefined' && replyOpen, reportOpen: typeof reportOpen !== 'undefined' && reportOpen }) %>
|
|---|
| [3d7312a] | 109 | <% } %>
|
|---|
| [41a7637] | 110 | <% } %>
|
|---|
| [3d7312a] | 111 | </div>
|
|---|
| 112 |
|
|---|
| [3ceaef6] | 113 | <%- include('../partials/fedi-interact-styles') %>
|
|---|