@ -5,35 +5,40 @@
<h1>Accueil</h1>
<h1>Accueil</h1>
<h2>Sitation du jour</h2>
@*
<div class="QuoteDiv">
<img class="imgQuote" src="@quote.ImgPath" />
<p class="idQuote"><strong>Identifiant de la citation :</strong>@quote.Id </p>
<p class="contentQuote"><strong>Citation:</strong>@quote.Content</p>
<p class="CaracterQuote"><strong>Personnage :</strong> @quote.Charac</p>
<p class="SourceQuote"><strong>Source :</strong> @quote.TitleSrc</p>
<p class="langueQuote"><strong>Langue :</strong> @quote.Langue</p>
<p class="UserPropositionQuote">@quote.UserProposition a proposé cette citation</p>
<button>Suprimé la citation</button>
</div>
*@
<button>Mettre une citation aléatoire</button>
<button>Mettre une citation aléatoire</button>
@if (quotes != null)
@if (quotes != null)
{
{
<table class="table">
<h3>Citations non validées</h3>
<thead>
<p>Citations en attente de validation:</p>
<tr>
<th>Id</th>
<th>Content</th>
<th>Charactére</th>
<th>Title Source</th>
<th>Like</th>
<th>Langue</th>
<th>Date Source</th>
</tr>
</thead>
<tbody>
@foreach (var quote in quotes)
@foreach (var quote in quotes)
{
{
<tr>
<div class="QuoteDiv">
<td>@quote.Id</td>
<img class="imgQuote" src="@quote.ImgPath" />
<td>@quote.Content</td>
<p class="idQuote"><strong>Identifiant de la citation :</strong>@quote.Id </p>
<td>@quote.Charac</td>
<p class="contentQuote"><strong>Citation:</strong>@quote.Content</p>
<td>@quote.TitleSrc</td>
<p class="CaracterQuote"><strong>Personnage :</strong> @quote.Charac</p>
<td>@quote.Like</td>
<p class="SourceQuote"><strong>Source :</strong> @quote.TitleSrc</p>
<td>@quote.Langue</td>
<p class="langueQuote"><strong>Langue :</strong> @quote.Langue</p>
<td>@quote.DateSrc.ToShortDateString()</td>
<p class="UserPropositionQuote">@quote.UserProposition a proposé cette citation</p>
</tr>
<button>Suprimé la citation</button>
</div>
}
}
</tbody>
</table>
}
}