Changeset 0fa59c3 in Klonkt for src/views/pages/following.ejs


Ignore:
Timestamp:
06/26/2026 03:56:42 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
84903a1
Parents:
cb3d5fc
Message:

feat(fedi): rename Timeline tab/route to Newspaper (/timeline -> /newspaper)

Renamed the feed: tab label + page title -> 'Newspaper', route /timeline -> /newspaper
(+ all sub-routes, form actions, links, render path, view file timeline.ejs->newspaper.ejs,
RESERVED_SLUGS). The Following page now shows its own title instead of the feed's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/following.ejs

    rcb3d5fc r0fa59c3  
    11<div class="tl-wrap">
    22  <%- 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>
    54  <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %>
    65  <% if (typeof error !== 'undefined' && error) { %><div class="alert alert-error"><%= error %></div><% } %>
     
    109  </div>
    1110
    12   <form method="post" action="/timeline/follow" class="tl-follow">
     11  <form method="post" action="/newspaper/follow" class="tl-follow">
    1312    <input type="text" name="handle" placeholder="@naam@server.social of site.com" autocomplete="off" spellcheck="false" required>
    1413    <button type="submit" class="btn btn-primary"><%= t('tl.follow_btn') %></button>
     
    2726            <% if (f.status === 'pending') { %><span class="tl-pending"><%= t('tl.pending') %></span><% } %>
    2827          </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') %>">
    3029            <input type="hidden" name="actor_uri" value="<%= f.actor_uri %>">
    3130            <label><input type="checkbox" name="auto_boost" value="1" <%= f.auto_boost ? 'checked' : '' %> onchange="this.form.submit()"> ✨ <%= t('tl.autoboost') %></label>
    3231          </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>
    3433        </li>
    3534      <% }); %>
Note: See TracChangeset for help on using the changeset viewer.