Changeset 9d9f3c1 in Klonkt


Ignore:
Timestamp:
06/20/2026 06:41:56 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
57b1843
Parents:
0f11c69
Message:

feat(epk): press kit editable (bio + press contact) via Admin

There was no edit UI for the press kit (bio fell back to the tagline, contact
empty). New: Admin → "Edit press kit" (/admin/epk, god-only + premium) with
fields Press bio + Press contact, saved as epk_bio_<siteId>/epk_contact_<siteId>
which /pers already reads. Dashboard now has "Edit press kit" + "View press kit".

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

Location:
src
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r0f11c69 r9d9f3c1  
    6161import showsRoutes from './routes/shows.js';
    6262import adminShowsRoutes from './routes/admin-shows.js';
     63import adminEpkRoutes from './routes/admin-epk.js';
    6364import changelogRoutes from './routes/changelog.js';
    6465
     
    265266app.use('/admin/newsletter', adminNewsletterRoutes);
    266267app.use('/admin/shows', adminShowsRoutes);
     268app.use('/admin/epk', adminEpkRoutes);
    267269app.use('/admin', adminRoutes);
    268270app.use('/prutter', prutterRoutes);
  • src/views/pages/admin.ejs

    r0f11c69 r9d9f3c1  
    3434      <a href="/admin/stats" class="btn">📊 Statistieken</a>
    3535      <a href="/admin/newsletter" class="btn">✉️ Nieuwsbrief</a>
    36       <% if (tenancy !== 'hub' && primarySite) { %><a href="/pers" class="btn" target="_blank">📰 Perskit</a><% } %>
     36      <% if (tenancy !== 'hub' && primarySite) { %><a href="/admin/epk" class="btn">📰 Perskit bewerken</a> <a href="/pers" class="btn" target="_blank">👁 Bekijk perskit</a><% } %>
    3737      <% if (tenancy !== 'hub' && primarySite) { %><a href="/downloads" class="btn" target="_blank">⬇ Downloads</a><% } %>
    3838      <% if (tenancy !== 'hub' && primarySite) { %><a href="/links" class="btn" target="_blank">🔗 Link-in-bio</a><% } %>
Note: See TracChangeset for help on using the changeset viewer.