// ========== AUDIT LOG VIEWER ========== (function() { // Inject modal HTML injectModal('audit-modal', `
| When | IP | Action | Resource | Result |
|---|---|---|---|---|
| ${timeAgo(e.timestamp)} | `; html += `${escapeHtml(e.ip || '-')} | `; html += `${escapeHtml(e.action || '-')} | `; html += `${escapeHtml(e.resource || '-')} | `; html += `${ok ? '✓' : '✗'} | `; html += '