Rebuild Laysense site with Webman and SQLite CMS

This commit is contained in:
2026-11-21 17:29:24 +08:00
commit d9bda755d1
99 changed files with 4280 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
use App\Content\View;
?>
<header class="admin-heading">
<h1>文章与动态</h1>
<a class="button button-primary" href="/admin/articles/new">新建文章</a>
</header>
<div class="admin-panel">
<?= View::fragment('admin-article-list', ['articles' => $articles]) ?>
</div>
<?php if ($pageNumber > 1 || $hasNext): ?>
<nav class="pagination" aria-label="文章分页">
<?php if ($pageNumber > 1): ?><a class="button button-outline" href="/admin/articles?page=<?= $pageNumber - 1 ?>">上一页</a><?php endif ?>
<span>第 <?= $pageNumber ?> 页</span>
<?php if ($hasNext): ?><a class="button button-outline" href="/admin/articles?page=<?= $pageNumber + 1 ?>">下一页</a><?php endif ?>
</nav>
<?php endif ?>