refactor: remplace l’invocation du composant Sidebar par un composant de vue

This commit is contained in:
mirage
2026-03-26 13:34:19 +01:00
parent 999d9893af
commit 2ca5cbf8a5
5 changed files with 71 additions and 64 deletions

View File

@@ -0,0 +1,23 @@
@model IEnumerable<Webzine.Entity.Style>
<aside class="col-lg-3 d-none d-lg-block">
<div>
<h2>À propos</h2>
<p>Retrouvez les dernières pépites sur notre webzine.</p>
</div>
<div>
<h2>Styles</h2>
<ul>
@foreach (var style in Model)
{
<li>
<a asp-controller="Titre"
asp-action="Style"
asp-route-style="@style.Libelle">
@style.Libelle
</a>
</li>
}
</ul>
</div>
</aside>