First commit
This commit is contained in:
27
app/Views/admin/dashboard.html
Normal file
27
app/Views/admin/dashboard.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<section class="stack-lg" aria-labelledby="dashboard-title">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title" id="dashboard-title">Tableau de bord</h1>
|
||||
|
||||
<div class="page-actions">
|
||||
<a class="button" href="{{ @BASE }}/dashboard/posts/create">Nouvel article</a>
|
||||
<a class="button button--ghost" href="{{ @BASE }}/dashboard/media">Médiathèque</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<check if="{{ @posts }}">
|
||||
<true>
|
||||
<div class="card-grid">
|
||||
<repeat group="{{ @posts }}" value="{{ @post }}">
|
||||
<include href="partials/post_card_admin.html" />
|
||||
</repeat>
|
||||
</div>
|
||||
<include href="partials/pagination.html" />
|
||||
</true>
|
||||
<false>
|
||||
<section class="empty-state" aria-labelledby="dashboard-empty-title">
|
||||
<h2 class="card-title" id="dashboard-empty-title">Aucun article</h2>
|
||||
<p>Commence par créer un premier article.</p>
|
||||
</section>
|
||||
</false>
|
||||
</check>
|
||||
</section>
|
||||
Reference in New Issue
Block a user