@@ -2690,23 +2689,23 @@
const ul = document.getElementById('user-sub-list');
try {
const subs = await api('GET', '/api/submissions/mine');
- if (!subs.length) { ul.innerHTML = '
📭 Du hast noch nichts eingereicht.
'; return; }
+ if (!subs.length) { ul.innerHTML = '
📭 You haven\'t submitted anything yet.
'; return; }
ul.innerHTML = '';
subs.forEach(sub => {
- const tl = sub.type === 'tip' ? '💡 Tip' : sub.type === 'edit' ? '✏️ Korrektur' : '🆕 Neuer Geist';
+ const tl = sub.type === 'tip' ? '💡 Tip' : sub.type === 'edit' ? '✏️ Correction' : '🆕 New Ghost';
const sc = sub.status === 'approved' ? 'ssa' : sub.status === 'rejected' ? 'ssr' : 'ssp';
- const sl = sub.status === 'approved' ? '✓ Angenommen' : sub.status === 'rejected' ? '✕ Abgelehnt' : '⏳ Ausstehend';
+ const sl = sub.status === 'approved' ? '✓ Approved' : sub.status === 'rejected' ? '✕ Rejected' : '⏳ Waiting for approval...';
const d = document.createElement('div'); d.className = 'usi';
- d.innerHTML = `
${escH(sub.ghost_name || 'Allgemein')}${tl}${sl}${fmtTime(sub.created_at)}
${escH(sub.content)}
${sub.admin_note ? `
Admin: ${escH(sub.admin_note)}
` : ''}`;
+ d.innerHTML = `
${escH(sub.ghost_name || 'General')}${tl}${sl}${fmtTime(sub.created_at)}
${escH(sub.content)}
${sub.admin_note ? `
Admin: ${escH(sub.admin_note)}
` : ''}`;
ul.appendChild(d);
});
const approved = subs.filter(s => s.status === 'approved').length;
const ub = document.getElementById('badge-user'); ub.textContent = approved; ub.classList.toggle('show', approved > 0);
- } catch { ul.innerHTML = '
Fehler beim Laden.
'; }
+ } catch { ul.innerHTML = '
Error while loading.
'; }
}
/* ── EXPORT ── */
- function exportGhosts() { const b = new Blob([JSON.stringify({ ghosts }, null, 2)], { type: 'application/json' }); const a = document.createElement('a'); a.href = URL.createObjectURL(b); a.download = 'blair-ghosts.json'; a.click(); toast("Exportiert ↓", "info"); }
+ function exportGhosts() { const b = new Blob([JSON.stringify({ ghosts }, null, 2)], { type: 'application/json' }); const a = document.createElement('a'); a.href = URL.createObjectURL(b); a.download = 'blair-ghosts.json'; a.click(); toast("Exported ↓", "info"); }
/* ── MODAL / CONFIRM / TOAST ── */
function openModal(id) { document.getElementById(id).classList.add('open'); document.body.style.overflow = 'hidden'; }