12 lines
546 B
Plaintext
12 lines
546 B
Plaintext
@model MyHN.Application.CommentDto
|
|
|
|
<div>
|
|
<p>@Model.Content</p>
|
|
<p> Publié le @Model.CreatedAt.ToLongDateString() @* par <strong>@Model.CreatedByName</strong> *@
|
|
- 👍 @Model.UpvotesCount / 👎 @Model.DownvotesCount</p>
|
|
<form is-authenticated asp-controller="Comments" asp-action="Vote" asp-route-id="@Model.Id" method="post">
|
|
<input type="hidden" name="redirectTo" value="@Context.Request.Path" />
|
|
<input type="submit" name="direction" value="up" />
|
|
<input type="submit" name="direction" value="down" />
|
|
</form>
|
|
</div> |