forked from laysense/laysite
Refine admin action buttons and add a system about page
This commit is contained in:
@@ -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']) ?>">
|
||||
|
||||
Reference in New Issue
Block a user