source: Klonkt/src/views/pages/volgend.ejs@ fda08c2

main
Last change on this file since fda08c2 was fda08c2, checked in by Robin Genis <roboburr@…>, 3 months ago

refactor(fedi): remove the 'boost latest 5' feature

Dropped at Robin's request. Featuring an account is now purely local (Cirkel) — the
only way to boost to the fediverse is the deliberate per-post 🔁. Removed: the boost5
checkbox + explain line on /volgend, the boost5 branch in /tijdlijn/follow, the
boostLatestN function + export, and the tl.boost5_* i18n keys (nl/en/de).

Co-Authored-By: Claude <noreply@…>

  • Property mode set to 100644
File size: 5.2 KB
RevLine 
[46f3dd6]1<div class="tl-wrap">
2 <h1 class="tl-title"><%= t('tl.title') %></h1>
3 <p class="tl-lead"><%= t('tl.lead') %></p>
4 <%- include('../partials/tl-tabs', { active: 'following' }) %>
5 <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %>
6 <% if (typeof error !== 'undefined' && error) { %><div class="alert alert-error"><%= error %></div><% } %>
7
[98ceadd]8 <div class="tl-explain">
9 <h2 class="tl-explain-h"><%= t('tl.explain_heading') %></h2>
10 <p><span class="tl-explain-tag">✨ <%= t('tl.autoboost') %></span> — <%= t('tl.autoboost_hint') %></p>
11 </div>
12
[46f3dd6]13 <form method="post" action="/tijdlijn/follow" class="tl-follow">
[98688c6]14 <input type="text" name="handle" placeholder="@naam@server.social of site.com" autocomplete="off" spellcheck="false" required>
[46f3dd6]15 <button type="submit" class="btn btn-primary"><%= t('tl.follow_btn') %></button>
[484adf8]16 <label class="tl-follow-ab" title="<%= t('tl.autoboost_hint') %>"><input type="checkbox" name="auto_boost" value="1"> ✨ <%= t('tl.autoboost_follow') %></label>
[46f3dd6]17 </form>
18
19 <% if (following && following.length) { %>
20 <h2 class="tl-sub"><%= t('tl.following') %> (<%= following.length %>)</h2>
21 <ul class="tl-foll-list">
22 <% following.forEach(function(f){ %>
23 <li class="tl-foll">
24 <span class="tl-foll-av"><% if (f.icon) { %><img src="<%= f.icon %>" alt=""><% } else { %><%= (f.name || '?').charAt(0).toUpperCase() %><% } %></span>
25 <span class="tl-foll-meta">
26 <a href="<%= f.url || f.actor_uri %>" target="_blank" rel="nofollow noopener"><%= f.name || f.handle %></a>
27 <span class="tl-foll-handle"><%= f.handle %></span>
28 <% if (f.status === 'pending') { %><span class="tl-pending"><%= t('tl.pending') %></span><% } %>
29 </span>
30 <form method="post" action="/tijdlijn/autoboost" class="tl-foll-ab" title="<%= t('tl.autoboost_hint') %>">
31 <input type="hidden" name="actor_uri" value="<%= f.actor_uri %>">
[484adf8]32 <label><input type="checkbox" name="auto_boost" value="1" <%= f.auto_boost ? 'checked' : '' %> onchange="this.form.submit()"> ✨ <%= t('tl.autoboost') %></label>
[46f3dd6]33 </form>
34 <form method="post" action="/tijdlijn/unfollow"><input type="hidden" name="actor_uri" value="<%= f.actor_uri %>"><button type="submit" class="tl-unfollow"><%= t('tl.unfollow') %></button></form>
35 </li>
36 <% }); %>
37 </ul>
38 <% } else { %>
39 <p class="tl-empty"><%= t('tl.empty_following') %></p>
40 <% } %>
41</div>
42
43<style>
44 .tl-wrap { max-width: 640px; margin: 2rem auto; padding: 0 1rem; }
45 .tl-title { margin: 0 0 .25rem; }
46 .tl-lead { color: var(--ink-soft, #888); margin: 0 0 1.25rem; }
[98ceadd]47 .tl-explain { margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: 12px;
48 background: color-mix(in srgb, var(--accent, #888) 8%, transparent);
49 border: 1px solid color-mix(in srgb, var(--accent, #888) 22%, transparent); }
50 .tl-explain-h { font-size: .95rem; margin: 0 0 .5rem; }
51 .tl-explain p { margin: .3rem 0; font-size: .85rem; color: var(--ink-soft, #888); line-height: 1.5; }
52 .tl-explain-tag { font-weight: 600; color: var(--ink, inherit); white-space: nowrap; }
[46f3dd6]53 .tl-sub { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }
54 .tl-follow { display: flex; gap: .5rem; margin: 0 0 1rem; flex-wrap: wrap; align-items: center; }
[5783c67]55 .tl-follow input[type="text"] { flex: 1; min-width: 200px; height: 2.4rem; padding: 0 .9rem; border-radius: 999px; font: inherit;
[46f3dd6]56 border: 1px solid color-mix(in srgb, var(--ink, #000) 18%, transparent); background: color-mix(in srgb, var(--ink, #000) 4%, transparent); color: var(--ink, #000); }
57 .tl-follow-ab { font-size: .85rem; color: var(--ink-soft, #888); display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
58 .tl-foll-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
59 .tl-foll { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 12px; background: color-mix(in srgb, var(--ink, #000) 4%, transparent); }
60 .tl-foll-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: color-mix(in srgb, var(--accent, #888) 20%, transparent); color: var(--accent, #555); }
61 .tl-foll-av img { width: 100%; height: 100%; object-fit: cover; }
62 .tl-foll-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
63 .tl-foll-meta a { color: var(--ink, inherit); text-decoration: none; font-weight: 600; }
64 .tl-foll-meta a:hover { text-decoration: underline; }
65 .tl-foll-handle { color: var(--ink-soft, #888); font-size: .82rem; }
66 .tl-pending { font-size: .72rem; color: var(--ink-soft, #999); }
67 .tl-foll-ab { margin: 0; font-size: .8rem; color: var(--ink-soft, #888); cursor: pointer; }
68 .tl-foll-ab label { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; }
69 .tl-unfollow { background: none; border: 1px solid color-mix(in srgb, var(--ink, #000) 18%, transparent); border-radius: 8px; padding: .25rem .6rem; font-size: .8rem; color: var(--ink-soft, #888); cursor: pointer; }
70 .tl-unfollow:hover { color: var(--ink, #000); }
71 .tl-empty { color: var(--ink-soft, #888); }
72</style>
Note: See TracBrowser for help on using the repository browser.