- Timestamp:
- 07/24/2026 05:34:51 PM (7 weeks ago)
- Branches:
- main
- Children:
- 1a2d8ac
- Parents:
- 318d0c2
- File:
-
- 1 edited
-
src/views/pages/messages.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/messages.ejs
r318d0c2 re84ce32 2 2 <%- include('../partials/fedi-tabs', { active: 'berichten' }) %> 3 3 <h1 class="msg-title"><%= t('msg.title') %></h1> 4 <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %> 5 <% if (typeof error !== 'undefined' && error) { %><div class="alert alert-error"><%= error %></div><% } %> 4 <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success === 'guardian_accepted' ? t('msg.guard_accepted') : (success === 'guardian_rejected' ? t('msg.guard_rejected') : success) %></div><% } %> 5 <% if (typeof error !== 'undefined' && error) { %><div class="alert alert-error"><%= error === 'guardianship' ? t('msg.guard_failed') : error %></div><% } %> 6 7 <%# FEP-633c: a pending guardianship offer is a special message: the kid 8 answers here (accept/reject travels the same C2S pipeline as the apps). %> 9 <% if (typeof guardianOffers !== 'undefined' && guardianOffers.length) { %> 10 <% guardianOffers.forEach(function(o){ %> 11 <div class="alert" style="display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-left:3px solid #ff6b35;"> 12 <span style="font-size:1.4em;">🛟</span> 13 <div style="flex:1;min-width:200px;"> 14 <strong><%= o.other_handle || o.other_uri %></strong><br> 15 <span><%= t('msg.guard_offer') %></span> 16 </div> 17 <form method="post" action="<%= (typeof moreBase !== 'undefined' ? moreBase : '') %>/messages/guardianship" style="display:flex;gap:8px;"> 18 <input type="hidden" name="guardian" value="<%= o.other_uri %>"> 19 <button class="btn" type="submit" name="answer" value="accept"><%= t('msg.guard_accept') %></button> 20 <button class="btn" type="submit" name="answer" value="reject" style="opacity:.7;"><%= t('msg.guard_reject') %></button> 21 </form> 22 </div> 23 <% }); %> 24 <% } %> 6 25 7 26 <div class="msg-filters" role="tablist" aria-label="<%= t('msg.title') %>">
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)