Changeset 439f095 in Klonkt for src/views/pages/messages.ejs
- Timestamp:
- 07/28/2026 11:48:34 PM (6 weeks ago)
- Branches:
- main
- Children:
- 88d7c8f
- Parents:
- 0202104
- File:
-
- 1 edited
-
src/views/pages/messages.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/messages.ejs
r0202104 r439f095 22 22 </div> 23 23 <% }); %> 24 <% } %>25 26 <%# FEP-633c §2: the ward always sees who guards it (committed relations). %>27 <% if (typeof myGuardians !== 'undefined' && myGuardians.length) { %>28 <div class="alert" style="display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-left:3px solid #35a2ff;">29 <span style="font-size:1.4em;">🛡</span>30 <div style="flex:1;min-width:200px;">31 <strong><%= t('msg.guardians_label') %></strong><br>32 <%# Availability (FEP-633c 3.6): the ward sees the real size of its33 safety net, in buddy-list language on the responsibility axis.34 Labels are UI (Robins besluit); the wire keeps the spec terms.35 Owner-only by construction: this page is the owner's. %>36 <span class="msg-guardians">37 <% myGuardians.forEach(function(g){38 var _st = g.availability === 'away' ? 'away' : (g.availability === 'dormant' ? 'dormant' : 'active');39 var _lbl = _st === 'away' ? t('msg.g_away', { date: g.awayUntil ? formatDate(g.awayUntil) : '?' })40 : (_st === 'dormant' ? t('msg.g_offline') : t('msg.g_available')); %>41 <span class="msg-guardian">42 <span class="msg-gdot msg-gdot-<%= _st %>" aria-hidden="true"></span>43 <%= g.handle %>44 <span class="msg-gstate"><%= _lbl %></span>45 </span>46 <% }); %>47 </span>48 </div>49 </div>50 24 <% } %> 51 25 … … 145 119 146 120 <style> 147 /* Availability of the ward's guardians (FEP-633c 3.6): the buddy-list dot148 on the responsibility axis. Green available, yellow declared away, grey149 observed dormant (one answer restores). */150 .msg-guardians { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }151 .msg-guardian { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }152 .msg-gdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }153 .msg-gdot-active { background: #4caf7d; }154 .msg-gdot-away { background: #e0a83a; }155 .msg-gdot-dormant { background: #8a93a3; }156 .msg-gstate { color: var(--ink-soft, #888); font-size: .82rem; }157 121 .msg-wrap { max-width: 640px; margin: 1rem auto; padding: 0 1rem; } 158 122 .msg-title { margin: 0 0 .9rem; }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)