mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
admin: merge status + logs into unified system.php with instant tabs
Replace the separate /admin/status.php and /admin/logs.php pages with a single /admin/system.php page organised around a tab bar. - system.php — top-level tab bar: 'Statut' + one tab per log file (nginx accès, nginx erreurs, PHP-FPM). Switching tabs is a plain href (?tab=…) so no JS required for navigation; the lines-selector SELECT triggers a location change on 'change' for instant reload without a submit button. - Status tab preserves all existing service cards, PHP runtime grid, and disk-usage bar from the old status.php. - Log tabs preserve line-count selector, file metadata bar, and per-line colour coding from the old logs.php. - New: copy-to-clipboard button on each log output block (Clipboard API with textarea execCommand fallback). - status.php / logs.php replaced with 301 redirect stubs so existing bookmarks and links keep working. - templates/admin/head.php: 'Statut' + 'Journaux' nav items replaced with a single 'Système' item; active state covers all three page names for redirect compatibility.
This commit is contained in:
4
TODO.md
4
TODO.md
@@ -334,5 +334,5 @@ Goal: rename the tables and column to the canonical M2M pattern (`tags`, `thesis
|
||||
- [x] Add server log viewer in admin panel (tail nginx error/access logs via SSH or log endpoint)
|
||||
- [ ] Add nginx config deploy flow to admin panel (upload `scripts/deploy-server.sh`, run remotely)
|
||||
- [x] Add admin user management UI — password change/set for PHP auth layer (`public/admin/account.php` + `actions/account.php`; "Compte" nav link; account CSS)
|
||||
- [ ] Merge `status.php` and `logs.php` into a single `system.php` page; remove "Statut" and "Journaux" nav links, add single "Système" link; preserve all existing content in their respective sections
|
||||
- [ ] Rework logs UI: replace the select-then-click-Afficher flow with instant tabs (nginx access, nginx error, php-fpm); switching tabs loads the selected log immediately without a form submit; add a copy-to-clipboard button per log view
|
||||
- [x] Merge `status.php` and `logs.php` into a single `system.php` page; remove "Statut" and "Journaux" nav links, add single "Système" link; preserve all existing content in their respective sections
|
||||
- [x] Rework logs UI: replace the select-then-click-Afficher flow with instant tabs (nginx access, nginx error, php-fpm); switching tabs loads the selected log immediately without a form submit; add a copy-to-clipboard button per log view
|
||||
|
||||
Reference in New Issue
Block a user