refactor: mise à jour des routes et actions Titre pour utiliser l’index au lieu des détails

This commit is contained in:
mirage
2026-04-01 14:46:47 +02:00
parent b5b21a6735
commit e30705dbe4
8 changed files with 13 additions and 49 deletions

View File

@@ -29,7 +29,7 @@
@titre.Artiste.Nom
</a>
-
<a asp-action="Details"
<a asp-action="Index"
asp-controller="Titre"
asp-route-id="@titre.IdTitre">
@titre.Libelle
@@ -43,7 +43,7 @@
<!-- Footer -->
<div class="d-flex flex-wrap align-items-center gap-3">
<a asp-action="Details"
<a asp-action="Index"
asp-controller="Titre"
asp-route-id="@titre.IdTitre"
class="btn btn-primary btn-sm">
@@ -90,7 +90,7 @@
<img class="card-img-top" src="@titre.UrlJaquette" alt="@titre.Album" loading="lazy" />
<div class="card-body">
<a asp-controller="Titre" asp-action="Details" asp-route-id="@titre.IdTitre" class="card-link">
<a asp-controller="Titre" asp-action="Index" asp-route-id="@titre.IdTitre" class="card-link">
@titre.Libelle
</a>
<br />

View File

@@ -56,7 +56,7 @@ else
<td class="text-secondary font-monospace">@dureeFormatee</td>
<td>
<a asp-controller="Titre"
asp-action="Details"
asp-action="Index"
asp-route-id="@titre.IdTitre"
class="text-primary">
@titre.Libelle

View File

@@ -50,7 +50,7 @@
{
<div class="d-flex align-items-start my-3">
<a asp-controller="Titre"
asp-action="Details"
asp-action="Index"
asp-route-id="@titre.IdTitre"
class="me-3 text-black">
<img src="@titre.UrlJaquette" alt="@titre.Libelle" width="70" height="70" class="object-fit-cover" loading="lazy"/>
@@ -65,7 +65,7 @@
</a>
-
<a asp-controller="Titre"
asp-action="Details"
asp-action="Index"
asp-route-id="@titre.IdTitre">
@titre.Libelle
</a>