Changeset 54d2f98 in Klonkt


Ignore:
Timestamp:
06/26/2026 01:17:36 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
98ceadd
Parents:
b6cdc3d
Message:

feat(fedi): add 'back to site' button on Timeline + Notifications

These owner-only fedi pages are headerless (no profile header/view-switcher), so add
the prominent 'Back to site' button (nav.back_to_site) at the top, like the other
fedi pages, for a clear way back.

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

Location:
src/views/pages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/fedi-notifications.ejs

    rb6cdc3d r54d2f98  
    11<div class="nt-wrap">
     2  <p class="fedi-back"><a class="btn btn-primary" href="/"><%= t('nav.back_to_site') %></a></p>
    23  <h1 class="nt-title"><%= t('notif.title') %></h1>
    34  <% if (!items || !items.length) { %>
     
    3132<style>
    3233  .nt-wrap { max-width: 620px; margin: 2rem auto; padding: 0 1rem; }
     34  .fedi-back { margin: 0 0 1.25rem; }
    3335  .nt-title { margin: 0 0 1.25rem; }
    3436  .nt-empty { color: var(--ink-soft, #888); }
  • src/views/pages/timeline.ejs

    rb6cdc3d r54d2f98  
    11<div class="tl-wrap">
     2  <p class="fedi-back"><a class="btn btn-primary" href="/"><%= t('nav.back_to_site') %></a></p>
    23  <h1 class="tl-title"><%= t('tl.title') %></h1>
    34  <p class="tl-lead"><%= t('tl.lead') %></p>
     
    4243<style>
    4344  .tl-wrap { max-width: 640px; margin: 2rem auto; padding: 0 1rem; }
     45  .fedi-back { margin: 0 0 1.25rem; }
    4446  .tl-title { margin: 0 0 .25rem; }
    4547  .tl-lead { color: var(--ink-soft, #888); margin: 0 0 1.25rem; }
Note: See TracChangeset for help on using the changeset viewer.