feat : RSS content, feed catégorie, cookie commentaires, flux erreurs, email preview (v1.6.17)
- RSS : content:encoded (HTML complet) + fix description via plain (#42) - RSS : flux filtré par ?category=nom (#43) - Commentaires : cookie nom/email pour pré-remplir le formulaire (#51) - flux/ : bandeau admin des feeds en erreur (#45) - admin/emails : bouton « Voir ↗ » vers /admin/email-preview/{id} en nouvel onglet (#37) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+7
-11
@@ -1005,17 +1005,13 @@ foreach (COLOR_PALETTE_16 as $_i => $_rgb):
|
||||
<td class="small"><?= htmlspecialchars((string)$em['subject']) ?></td>
|
||||
<td><?= $emBadge ?></td>
|
||||
<td>
|
||||
<details>
|
||||
<summary class="btn btn-outline-secondary btn-sm" style="display:inline;cursor:pointer">Voir</summary>
|
||||
<div class="mt-2 p-2 border rounded bg-light" style="max-width:600px">
|
||||
<?php if (!empty($em['error_message'])): ?>
|
||||
<p class="text-danger small mb-2"><strong>Erreur :</strong> <?= htmlspecialchars((string)$em['error_message']) ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($em['content_text'])): ?>
|
||||
<pre class="mb-0 small" style="white-space:pre-wrap;font-size:0.75rem"><?= htmlspecialchars((string)$em['content_text']) ?></pre>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</details>
|
||||
<?php if (!empty($em['content_html']) || !empty($em['content_text'])): ?>
|
||||
<a href="/admin/email-preview/<?= (int)$em['id'] ?>" target="_blank" rel="noopener"
|
||||
class="btn btn-outline-secondary btn-sm">Voir ↗</a>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($em['error_message'])): ?>
|
||||
<span class="text-danger small d-block mt-1" title="<?= htmlspecialchars((string)$em['error_message']) ?>">⚠ Erreur</span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
Reference in New Issue
Block a user