<%- include('../partials/fedi-tabs', { active: 'berichten' }) %>
<%= t('msg.title') %>
<% if (typeof success !== 'undefined' && success) { %>
<%= success === 'guardian_accepted' ? t('msg.guard_accepted') : (success === 'guardian_rejected' ? t('msg.guard_rejected') : (success === 'wave_sent' ? t('msg.wave_sent') : success)) %>
<% } %>
<% if (typeof error !== 'undefined' && error) { %>
<%= error === 'guardianship' ? t('msg.guard_failed') : error %>
<% } %>
<%# FEP-633c: a pending guardianship offer is a special message: the kid
answers here (accept/reject travels the same C2S pipeline as the apps). %>
<% if (typeof guardianOffers !== 'undefined' && guardianOffers.length) { %>
<% guardianOffers.forEach(function(o){ %>
🛟
<%= o['shaer:candidateHandle'] || o['shaer:candidate'] %>
<%= t('msg.guard_offer') %>
<% }); %>
<% } %>
<%# FEP-633c §2: the ward always sees who guards it (committed relations). %>
<% if (typeof myGuardians !== 'undefined' && myGuardians.length) { %>
🛡
<%= t('msg.guardians_label') %>
<%# Availability (FEP-633c 3.6): the ward sees the real size of its
safety net, in buddy-list language on the responsibility axis.
Labels are UI (Robins besluit); the wire keeps the spec terms.
Owner-only by construction: this page is the owner's. %>
<% myGuardians.forEach(function(g){
var _st = g.availability === 'away' ? 'away' : (g.availability === 'dormant' ? 'dormant' : 'active');
var _lbl = _st === 'away' ? t('msg.g_away', { date: g.awayUntil ? formatDate(g.awayUntil) : '?' })
: (_st === 'dormant' ? t('msg.g_offline') : t('msg.g_available')); %>
<%= g.handle %>
<%= _lbl %>
<% }); %>
<% } %>
<%= t('msg.filter_all') %>
<%= t('msg.filter_msgs') %>
<%= t('msg.filter_conv') %>
<%= t('msg.filter_act') %>
<%= t('msg.filter_mod') %>
<%= t('msg.filter_sent') %>
<% var _seen = (typeof seenAt !== 'undefined' && seenAt) ? seenAt : 0; %>
<% if (!items || !items.length) { %>
<%= t('msg.empty') %>
<% } else { %>
<% items.forEach(function(n){ %><%- include('../partials/msg-item', { n: n, seen: _seen }) %><% }); %>
<%= t('msg.no_match') %>
<%- include('../partials/load-more', { hasMore: hasMore, nextOffset: nextOffset, moreBase: moreBase, moreTarget: '#msg-list', morePath: '/messages' }) %>
<% } %>
<%# Interact bookmarklet — moved here from the old Reacties page. %>
<%= t('fedi.bm_label') %>
<%= t('fedi.bm_help') %>
<%= t('fedi.bm_label') %>