Prepare LaySite 1.5.0 canvas and publishing improvements
This commit is contained in:
@@ -22,6 +22,7 @@ foreach (['header', 'footer'] as $kind) {
|
||||
<a class="button button-outline" href="/admin/articles/new"><?= View::fragment('studio-icon', ['icon' => 'edit']) ?>写文章</a>
|
||||
</div>
|
||||
</header>
|
||||
<?php if ($deleted): ?><p class="feedback success" data-save-confirmation role="status">页面已删除。</p><?php endif ?>
|
||||
<div class="dashboard-grid">
|
||||
<section class="admin-panel dashboard-pages" aria-labelledby="pages-title" data-page-list>
|
||||
<div class="admin-heading compact">
|
||||
@@ -64,6 +65,14 @@ foreach (['header', 'footer'] as $kind) {
|
||||
'icon' => $public ? 'external' : 'preview',
|
||||
'label' => ($public ? '查看公开页面' : '预览页面') . ' · ' . $page['name'],
|
||||
]) ?>
|
||||
<?php if ($page['slug'] !== 'home'): ?>
|
||||
<form method="post" action="/admin/pages/<?= $e($page['slug']) ?>/delete">
|
||||
<input type="hidden" name="csrf" value="<?= $e($token) ?>">
|
||||
<input type="hidden" name="version" value="<?= $e($page['version']) ?>">
|
||||
<button class="button button-outline admin-view-link destructive-action" type="submit"
|
||||
title="删除页面" aria-label="删除页面" data-confirm="<?= $e('确定删除「' . $page['name'] . '」?此操作不可撤销。') ?>"><?= View::fragment('studio-icon', ['icon' => 'delete']) ?></button>
|
||||
</form>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user