Changeset 6e0249f in Klonkt for src/views/pages/hub-home.ejs


Ignore:
Timestamp:
06/14/2026 03:21:25 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
4c5169f
Parents:
743bb81
Message:

hub: generic home page (not owned by any user) + admin-managed branding

The hub home page was the oldest site (a user's PrutFolio). Now it is a
generic page: title/tagline/intro come from global settings (hub_title/
hub_tagline/hub_intro), editable in Admin -> Settings (hub only). The roster
now shows ALL users (including the admin's own PrutFolio under /user/<slug>)
— no site is singled out as "the company" any more.

POST /admin/settings only updates tenancy when the field is present (a
separate branding form no longer accidentally flips the mode).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/hub-home.ejs

    r743bb81 r6e0249f  
    44  <header class="hub-hero">
    55    <div class="hub-hero-inner container">
    6       <h1 class="hub-hero-title"><%= company ? company.title : 'Overzicht' %></h1>
    7       <% if (company && company.tagline) { %>
    8         <p class="hub-hero-tag"><%= company.tagline %></p>
     6      <h1 class="hub-hero-title"><%= hub.title %></h1>
     7      <% if (hub.tagline) { %>
     8        <p class="hub-hero-tag"><%= hub.tagline %></p>
    99      <% } %>
    10       <% if (company && (company.profile_bio || company.description)) { %>
    11         <p class="hub-hero-desc"><%= company.profile_bio || company.description %></p>
     10      <% if (hub.intro) { %>
     11        <p class="hub-hero-desc"><%= hub.intro %></p>
    1212      <% } %>
    1313    </div>
Note: See TracChangeset for help on using the changeset viewer.