- Timestamp:
- 07/28/2026 11:40:37 PM (6 weeks ago)
- Branches:
- main
- Children:
- 439f095
- Parents:
- 6eab7e9
- Location:
- src/views/pages
- Files:
-
- 2 edited
-
guardian.ejs (modified) (1 diff)
-
messages.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/guardian.ejs
r6eab7e9 r0202104 73 73 </section> 74 74 75 <!-- 4b. Even afwezig (FEP-633c 3.6.1): de verantwoordelijke handeling. 76 Wie zich afmeldt telt niet mee in de besluiten, en een enkel 77 antwoord brengt je meteen terug. Alleen zichtbaar met wards. --> 78 <section id="away-section" hidden> 79 <div class="g-sec-head"><h2><%= t('guardian.away_title') %></h2></div> 80 <p class="g-sec-sub"><%= t('guardian.away_sub') %></p> 81 <div class="g-away-row"> 82 <button id="away-week" class="quiet small"><%= t('guardian.away_week') %></button> 83 <button id="away-month" class="quiet small"><%= t('guardian.away_month') %></button> 84 </div> 85 <p id="away-msg" class="g-msg" hidden></p> 86 </section> 87 75 88 <!-- 5. Meldingen. --> 76 89 <section id="push-section"> -
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)