Refine admin action buttons and add a system about page

This commit is contained in:
2026-11-25 17:43:57 +08:00
parent 06bf1c8fc0
commit 2e1e43a3ce
19 changed files with 152 additions and 51 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
use App\Content\View;
$e = View::escape(...);
$label ??= match ($icon) {
'external' => '查看公开页面',
'preview' => '打开预览',
'globe' => '访问网站',
};
$hint = $e($label . '(在新标签页打开)');
?>
<a class="button button-outline admin-view-link admin-view-link-<?= $e($icon) ?>" href="<?= $e($href) ?>" target="_blank" rel="noopener" aria-label="<?= $hint ?>" title="<?= $hint ?>"><?= View::fragment('studio-icon', compact('icon')) ?></a>