mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Refactor about.php
- Hardcode source code URL and credits in about template, remove from DB/admin interface; only contacts remains editable - Merge apropos editables into one À propos section, remove charte, add editable source code URL
This commit is contained in:
@@ -37,38 +37,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2 style="margin-top:2rem;">À propos</h2>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Clé</th>
|
||||
<th scope="col">Type</th>
|
||||
<th scope="col">Mis à jour</th>
|
||||
<th scope="col">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($aproposKeys as $a): ?>
|
||||
<?php
|
||||
$typeLabel = match($a['key']) {
|
||||
'contacts' => 'Contacts',
|
||||
'credits' => 'Crédits',
|
||||
};
|
||||
?>
|
||||
<tr>
|
||||
<td><code><?= htmlspecialchars($a['key']) ?></code></td>
|
||||
<td><?= htmlspecialchars($typeLabel) ?></td>
|
||||
<td><?= htmlspecialchars($a['updated_at'] ?? '—') ?></td>
|
||||
<td>
|
||||
<a href="/admin/contenus-edit.php?apropos=<?= urlencode($a['key']) ?>"
|
||||
class="btn btn--primary btn--sm">Éditer</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- ═══════════════════════════════════════════════════════════════════
|
||||
Blocs d'aide du formulaire étudiant·e
|
||||
═══════════════════════════════════════════════════════════════════ -->
|
||||
|
||||
Reference in New Issue
Block a user