@model MyHN.Application.LinkDto

<article>
  <h2>@Model.Url</h2>
  <p>
    <a asp-controller="Links" asp-action="Show" asp-route-id="@Model.Id">Afficher le lien</a> 
    - <a is-authenticated asp-controller="Links" asp-action="Comment" asp-route-id="@Model.Id">Commenter le lien</a> 
    - Publié le @Model.CreatedAt.ToLongDateString() par <strong>@Model.CreatedByName</strong>
    - 👍 @Model.UpvotesCount / 👎 @Model.DownvotesCount
  </p>
  <form is-authenticated asp-controller="Links" 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>
</article>