Changeset eefd302 in Klonkt for src/views/partials


Ignore:
Timestamp:
06/26/2026 05:04:49 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
cf4cf27
Parents:
69e7a79
Message:

feat(fedi): rename feed Newspaper -> News (/newspaper -> /news)

EN label + route shortened to 'News' / '/news' (+ sub-routes, links, form actions,
render path, view newspaper.ejs->news.ejs, RESERVED_SLUGS, pageTitle). NL 'Krant' and
DE 'Zeitung' unchanged.

Location:
src/views/partials
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/fedi-tabs.ejs

    r69e7a79 reefd302  
    66<% var _nu = (typeof notifUnread !== 'undefined') ? notifUnread : 0; %>
    77<nav class="fedi-tabs" aria-label="Fediverse">
    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>
     8  <a href="/news" class="fedi-tab<%= _a === 'feed' ? ' is-active' : '' %>"
     9     hx-get="/news?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/news" 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

    r69e7a79 reefd302  
    6565      <% if (typeof canManageFedi !== 'undefined' && canManageFedi) { %>
    6666      <li role="none">
    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">
     67        <a href="/news" class="profile-sheet-item" role="menuitem" data-close-sheet
     68           hx-get="/news?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/news" 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

    r69e7a79 reefd302  
    158158              <% } %>
    159159              <% if (typeof canManageFedi !== 'undefined' && canManageFedi) { %>
    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">
     160                <a href="/news" role="menuitem" class="udi"
     161                   hx-get="/news?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
     162                   hx-push-url="/news" 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.