Changeset ec2e358 in Klonkt


Ignore:
Timestamp:
06/16/2026 07:25:15 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
c974223
Parents:
d15b27f
Message:

Archive: switcher click navigates back to the feed instead of toggling in-place

'on-archive' removed from FEED_PAGE_CLASSES → the existing non-feed branch
handles it: clicking Timeline/Grid on the archive navigates (htmx) back to
the site home in the chosen view. Buttons stay grey on archive (previous
commit).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/shell.ejs

    rd15b27f rec2e358  
    385385  // navigate to home in the chosen view, so the switcher is never
    386386  // a dead control.
    387   var FEED_PAGE_CLASSES = ['on-home', 'on-archive', 'on-tag', 'on-type', 'on-user', 'on-cirkel'];
     387  // NB: 'on-archive' staat hier bewust NIET tussen — op het archief is er geen
     388  // in-place timeline/grid-toggle; een klik op de switcher springt terug naar de
     389  // feed in de gekozen weergave (zie de !isFeedPage()-tak hieronder).
     390  var FEED_PAGE_CLASSES = ['on-home', 'on-tag', 'on-type', 'on-user', 'on-cirkel'];
    388391  function isFeedPage() {
    389392    for (var i = 0; i < FEED_PAGE_CLASSES.length; i++) {
Note: See TracChangeset for help on using the changeset viewer.