Changeset 0202104 in Klonkt for src/views/pages/messages.ejs
- Timestamp:
- 07/28/2026 11:40:37 PM (6 weeks ago)
- Branches:
- main
- Children:
- 439f095
- Parents:
- 6eab7e9
- File:
-
- 1 edited
-
src/views/pages/messages.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/messages.ejs
r6eab7e9 r0202104 30 30 <div style="flex:1;min-width:200px;"> 31 31 <strong><%= t('msg.guardians_label') %></strong><br> 32 <span><%= myGuardians.map(function(g){ return g.handle; }).join(', ') %></span> 32 <%# Availability (FEP-633c 3.6): the ward sees the real size of its 33 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> 33 48 </div> 34 49 </div> … … 130 145 131 146 <style> 147 /* Availability of the ward's guardians (FEP-633c 3.6): the buddy-list dot 148 on the responsibility axis. Green available, yellow declared away, grey 149 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; } 132 157 .msg-wrap { max-width: 640px; margin: 1rem auto; padding: 0 1rem; } 133 158 .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)