Changeset 0fa59c3 in Klonkt for src/views/pages
- Timestamp:
- 06/26/2026 03:56:42 PM (2 months ago)
- Branches:
- main
- Children:
- 84903a1
- Parents:
- cb3d5fc
- Location:
- src/views/pages
- Files:
-
- 2 edited
- 1 moved
-
admin.ejs (modified) (1 diff)
-
following.ejs (modified) (3 diffs)
-
newspaper.ejs (moved) (moved from src/views/pages/timeline.ejs ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin.ejs
rcb3d5fc r0fa59c3 55 55 <% } %> 56 56 <% if (typeof apEnabled === 'undefined' || apEnabled) { %> 57 <a href="/ timeline" class="btn">🌐 <%= t('tl.title') %></a>57 <a href="/newspaper" class="btn">🌐 <%= t('tl.title') %></a> 58 58 <a href="/notifications" class="btn">🔔 <%= t('notif.title') %></a> 59 59 <a href="/fediverse" class="btn">🐘 <%= t('admin.b_fediverse') %></a> -
src/views/pages/following.ejs
rcb3d5fc r0fa59c3 1 1 <div class="tl-wrap"> 2 2 <%- include('../partials/fedi-tabs', { active: 'following' }) %> 3 <h1 class="tl-title"><%= t('tl.title') %></h1> 4 <p class="tl-lead"><%= t('tl.lead') %></p> 3 <h1 class="tl-title"><%= t('tl.tab_following') %></h1> 5 4 <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %> 6 5 <% if (typeof error !== 'undefined' && error) { %><div class="alert alert-error"><%= error %></div><% } %> … … 10 9 </div> 11 10 12 <form method="post" action="/ timeline/follow" class="tl-follow">11 <form method="post" action="/newspaper/follow" class="tl-follow"> 13 12 <input type="text" name="handle" placeholder="@naam@server.social of site.com" autocomplete="off" spellcheck="false" required> 14 13 <button type="submit" class="btn btn-primary"><%= t('tl.follow_btn') %></button> … … 27 26 <% if (f.status === 'pending') { %><span class="tl-pending"><%= t('tl.pending') %></span><% } %> 28 27 </span> 29 <form method="post" action="/ timeline/autoboost" class="tl-foll-ab" title="<%= t('tl.autoboost_hint') %>">28 <form method="post" action="/newspaper/autoboost" class="tl-foll-ab" title="<%= t('tl.autoboost_hint') %>"> 30 29 <input type="hidden" name="actor_uri" value="<%= f.actor_uri %>"> 31 30 <label><input type="checkbox" name="auto_boost" value="1" <%= f.auto_boost ? 'checked' : '' %> onchange="this.form.submit()"> ✨ <%= t('tl.autoboost') %></label> 32 31 </form> 33 <form method="post" action="/ timeline/unfollow"><input type="hidden" name="actor_uri" value="<%= f.actor_uri %>"><button type="submit" class="tl-unfollow"><%= t('tl.unfollow') %></button></form>32 <form method="post" action="/newspaper/unfollow"><input type="hidden" name="actor_uri" value="<%= f.actor_uri %>"><button type="submit" class="tl-unfollow"><%= t('tl.unfollow') %></button></form> 34 33 </li> 35 34 <% }); %> -
src/views/pages/newspaper.ejs
rcb3d5fc r0fa59c3 47 47 48 48 <div class="tl-actions"> 49 <form method="post" action="/ timeline/like" class="tl-act-form"><input type="hidden" name="note" value="<%= p.id %>"><input type="hidden" name="author" value="<%= p.author_uri %>"><button type="submit" class="tl-act tl-act-like" title="<%= t('fedi.likes') %>" aria-label="<%= t('fedi.likes') %>"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2.6l2.9 5.88 6.49.95-4.7 4.58 1.11 6.46L12 17.96l-5.8 3.06 1.1-6.46-4.69-4.58 6.49-.95z"/></svg></button></form>49 <form method="post" action="/newspaper/like" class="tl-act-form"><input type="hidden" name="note" value="<%= p.id %>"><input type="hidden" name="author" value="<%= p.author_uri %>"><button type="submit" class="tl-act tl-act-like" title="<%= t('fedi.likes') %>" aria-label="<%= t('fedi.likes') %>"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2.6l2.9 5.88 6.49.95-4.7 4.58 1.11 6.46L12 17.96l-5.8 3.06 1.1-6.46-4.69-4.58 6.49-.95z"/></svg></button></form> 50 50 <% if (p.boosted) { %> 51 <form method="post" action="/ timeline/unboost" class="tl-act-form"><input type="hidden" name="note" value="<%= p.id %>"><input type="hidden" name="author" value="<%= p.author_uri %>"><button type="submit" class="tl-act tl-act-boost is-on" title="<%= t('tl.unboost') %>" aria-label="<%= t('tl.unboost') %>"><svg viewBox="0 0 24 24" 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></button></form>51 <form method="post" action="/newspaper/unboost" class="tl-act-form"><input type="hidden" name="note" value="<%= p.id %>"><input type="hidden" name="author" value="<%= p.author_uri %>"><button type="submit" class="tl-act tl-act-boost is-on" title="<%= t('tl.unboost') %>" aria-label="<%= t('tl.unboost') %>"><svg viewBox="0 0 24 24" 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></button></form> 52 52 <% } else { %> 53 <form method="post" action="/ timeline/boost" class="tl-act-form"><input type="hidden" name="note" value="<%= p.id %>"><input type="hidden" name="author" value="<%= p.author_uri %>"><button type="submit" class="tl-act tl-act-boost" title="<%= t('fedi.boosts') %>" aria-label="<%= t('fedi.boosts') %>"><svg viewBox="0 0 24 24" 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></button></form>53 <form method="post" action="/newspaper/boost" class="tl-act-form"><input type="hidden" name="note" value="<%= p.id %>"><input type="hidden" name="author" value="<%= p.author_uri %>"><button type="submit" class="tl-act tl-act-boost" title="<%= t('fedi.boosts') %>" aria-label="<%= t('fedi.boosts') %>"><svg viewBox="0 0 24 24" 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></button></form> 54 54 <% } %> 55 55 <button type="button" class="tl-act tl-act-reply fedi-remote-reply-btn" data-fedi-uri="<%= p.id %>" data-fedi-ph="<%= t('fedi.remote_ph') %>" title="<%= t('fedi.remote_reply') %>" aria-label="<%= t('fedi.remote_reply') %>"><svg viewBox="0 0 24 24" 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></button>
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)