Changeset 0fa59c3 in Klonkt for src/views


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.

Location:
src/views
Files:
5 edited
1 moved

Legend:

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

    rcb3d5fc r0fa59c3  
    5555    <% } %>
    5656    <% 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>
    5858      <a href="/notifications" class="btn">🔔 <%= t('notif.title') %></a>
    5959      <a href="/fediverse" class="btn">🐘 <%= t('admin.b_fediverse') %></a>
  • 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      <% }); %>
  • src/views/pages/newspaper.ejs

    rcb3d5fc r0fa59c3  
    4747
    4848          <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>
    5050            <% 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>
    5252            <% } 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>
    5454            <% } %>
    5555            <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>
  • src/views/partials/fedi-tabs.ejs

    rcb3d5fc r0fa59c3  
    66<% var _nu = (typeof notifUnread !== 'undefined') ? notifUnread : 0; %>
    77<nav class="fedi-tabs" aria-label="Fediverse">
    8   <a href="/timeline" class="fedi-tab<%= _a === 'feed' ? ' is-active' : '' %>"
    9      hx-get="/timeline?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/timeline" hx-indicator="#pcms-loading"><%= t('tl.tab_feed') %></a>
     8  <a href="/newspaper" class="fedi-tab<%= _a === 'feed' ? ' is-active' : '' %>"
     9     hx-get="/newspaper?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/newspaper" hx-indicator="#pcms-loading"><%= t('tl.tab_feed') %></a>
    1010  <a href="/following" class="fedi-tab<%= _a === 'following' ? ' is-active' : '' %>"
    1111     hx-get="/following?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/following" hx-indicator="#pcms-loading"><%= t('tl.tab_following') %></a>
  • src/views/partials/profile-sheet.ejs

    rcb3d5fc r0fa59c3  
    6565      <% if (typeof canManageFedi !== 'undefined' && canManageFedi) { %>
    6666      <li role="none">
    67         <a href="/timeline" class="profile-sheet-item" role="menuitem" data-close-sheet
    68            hx-get="/timeline?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/timeline" hx-indicator="#pcms-loading">
     67        <a href="/newspaper" class="profile-sheet-item" role="menuitem" data-close-sheet
     68           hx-get="/newspaper?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/newspaper" hx-indicator="#pcms-loading">
    6969          <svg class="psi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"/></svg>
    7070          <span class="psi-label"><%= t('nav.fediverse') %></span>
  • src/views/partials/topnav.ejs

    rcb3d5fc r0fa59c3  
    158158              <% } %>
    159159              <% if (typeof canManageFedi !== 'undefined' && canManageFedi) { %>
    160                 <a href="/timeline" role="menuitem" class="udi"
    161                    hx-get="/timeline?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
    162                    hx-push-url="/timeline" hx-indicator="#pcms-loading">
     160                <a href="/newspaper" role="menuitem" class="udi"
     161                   hx-get="/newspaper?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
     162                   hx-push-url="/newspaper" hx-indicator="#pcms-loading">
    163163                  <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"/></svg>
    164164                  <span><%= t('nav.fediverse') %></span>
Note: See TracChangeset for help on using the changeset viewer.