Changeset 9e5438e in Klonkt for src/views/partials/topnav.ejs


Ignore:
Timestamp:
06/26/2026 01:50:51 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
5e3be97
Parents:
8334d27
Message:

feat(fedi): unify Timeline/Following/Replies/Notifications/Blocking under one tabbed Fediverse section

Shared responsive fedi-tabs bar (5 tabs + back-to-site) on all fediverse pages, with
htmx nav so switching tabs swaps #pcms-main (feels like one page; URL stays bookmarkable
per tab; tab bar scrolls horizontally on narrow screens). Added a 'Fediverse' entry to
the user dropdown + mobile sheet (-> /tijdlijn), removed the separate Timeline nav icon
(kept the notification bell). Replaced the old 2-tab tl-tabs (removed). i18n nav.fediverse
+ tl.tab_replies (nl/en/de).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/topnav.ejs

    r8334d27 r9e5438e  
    9797          </div>
    9898        </details>
    99       <% } %>
    100 
    101       <% if (user && typeof canManageFedi !== 'undefined' && canManageFedi) { %>
    102         <a class="nav-btn" href="/tijdlijn" aria-label="<%= t('tl.title') %>" title="<%= t('tl.title') %>"
    103            hx-get="/tijdlijn?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/tijdlijn" hx-indicator="#pcms-loading">
    104           <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>
    105         </a>
    10699      <% } %>
    107100
     
    162155                </a>
    163156              <% } %>
     157              <% if (typeof canManageFedi !== 'undefined' && canManageFedi) { %>
     158                <a href="/tijdlijn" role="menuitem" class="udi"
     159                   hx-get="/tijdlijn?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
     160                   hx-push-url="/tijdlijn" hx-indicator="#pcms-loading">
     161                  <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>
     162                  <span><%= t('nav.fediverse') %></span>
     163                </a>
     164              <% } %>
    164165            </div>
    165166            <div class="user-dropdown-divider" aria-hidden="true"></div>
Note: See TracChangeset for help on using the changeset viewer.