Changeset eacd3d6 in Klonkt for src/views


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

feat(admin): Solo/Circles mode selector at top of settings + fix premium text

Replace the Fediverse on/off checkbox with a Solo / Circles mode selector (radio cards,
.set-opt) moved to the top of /admin/settings — Solo = ActivityPub off (standalone, no
comments), Circles = ap on (federate + circle feed). Route reads mode=solo|cirkels.
Premium card no longer lists removed modules (Hub mode, Prutter DMs) → real features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin-settings.ejs

    rcf4cf27 reacd3d6  
    55  <% if (success) { %><div class="alert alert-success"><%= success %></div><% } %>
    66  <% if (typeof error !== 'undefined' && error) { %><div class="alert alert-error"><%= error %></div><% } %>
     7
     8  <%# ── Mode: Solo or Cirkels (ActivityPub) — the primary, top-of-page choice ── %>
     9  <section class="set-card set-card--mode" style="margin-top:1rem">
     10    <h2><%= t('aset.mode') %></h2>
     11    <p class="set-help"><%= t('aset.mode_help') %></p>
     12    <form method="post" action="/admin/settings/ap" class="set-form">
     13      <label class="set-opt">
     14        <input type="radio" name="mode" value="solo" <%= (typeof apEnabledSetting !== 'undefined' && !apEnabledSetting) ? 'checked' : '' %>>
     15        <span><strong><%= t('aset.mode_solo') %></strong><small><%= t('aset.mode_solo_help') %></small></span>
     16      </label>
     17      <label class="set-opt">
     18        <input type="radio" name="mode" value="cirkels" <%= (typeof apEnabledSetting === 'undefined' || apEnabledSetting) ? 'checked' : '' %>>
     19        <span><strong><%= t('aset.mode_cirkels') %></strong><small><%= t('aset.mode_cirkels_help') %></small></span>
     20      </label>
     21      <div class="set-actions"><button type="submit" class="btn btn-primary"><%= t('aset.save') %></button></div>
     22    </form>
     23  </section>
    724
    825  <%# ── Default language for visitors ── %>
     
    8198  </section>
    8299  <% } %>
    83 
    84   <%# Fediverse (ActivityPub) on/off. Off = no federation + no fediverse reactions,
    85       which (since native comments were removed) means no comments at all. %>
    86   <section class="set-card" style="margin-top:1rem">
    87     <h2><%= t('aset.fediverse') %></h2>
    88     <p class="set-help"><%= t('aset.fediverse_help') %></p>
    89     <form method="post" action="/admin/settings/ap" class="set-form">
    90       <label class="set-toggle" style="display:flex;align-items:center;gap:.6rem;cursor:pointer">
    91         <input type="checkbox" name="ap_enabled" value="1" <%= (typeof apEnabledSetting === 'undefined' || apEnabledSetting) ? 'checked' : '' %>>
    92         <span><%= t('aset.fediverse_toggle') %></span>
    93       </label>
    94       <div class="set-actions"><button type="submit" class="btn btn-primary"><%= t('aset.save') %></button></div>
    95     </form>
    96   </section>
    97100
    98101  <%# E-mail / SMTP — required for sending newsletters, notify-mails and password resets. %>
Note: See TracChangeset for help on using the changeset viewer.