hn-dotnet/Apps/Website/Views/Shared/_CommentItem.cshtml
2020-12-11 12:01:59 +01:00

11 lines
394 B
Plaintext

@model HN.Application.CommentDto
<span>@Model.Content</span>
<div>
👍: @Model.UpVotes / 👎: @Model.DownVotes
</div>
<form asp-action="Vote" asp-controller="Comments" asp-route-id="@Model.Id" method="post">
<input type="hidden" name="redirectTo" value="@Context.Request.Path" />
<input type="submit" name="type" value="up" />
<input type="submit" name="type" value="down" />
</form>