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
+4 -1
View File
@@ -32,7 +32,10 @@ $e = View::escape(...);
<?php endif ?>
<h3><?= $e($file['label']) ?></h3>
<small><?= $e((string) max(1, ceil($file['size'] / 1024))) ?> KB · <?= $file['name'] === '' ? '项目文件' : ($file['archived'] ? '已归档' : '上传文件') ?></small>
<div class="actions"><a href="<?= $e($file['url']) ?>" target="_blank" rel="noopener">打开</a><button type="button" class="button button-outline" data-copy-asset="<?= $e($file['url']) ?>">复制路径</button></div>
<div class="actions">
<?= View::fragment('admin-view-link', ['href' => $file['url'], 'icon' => 'external', 'label' => '打开媒体文件']) ?>
<button type="button" class="button button-outline" data-copy-asset="<?= $e($file['url']) ?>">复制路径</button>
</div>
<?php if ($file['name'] !== ''): ?>
<details><summary>管理文件</summary>
<form class="admin-form" method="post" action="/admin/media/<?= $e($file['name']) ?>">