Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (19 sloc) 844 Bytes
@page "/song/votes/{id}"
@model BillionSongs.Pages.SongVotesModel
@{
ViewData["Title"] = "SongVotes";
Layout = "_BareLayout";
}
<body style="margin: 0">
<form method="post" target="_parent" style="text-align: center">
<div class="btn-group btn-group-xs">
<button id="upvote" type="submit" asp-page-handler="Upvote"
class="btn @(Model.OwnVote == true ? ".active": "")"
style="padding-left: 0">👍 @Model.Upvotes</button>
<button id="downvote" type="submit" asp-page-handler="Downvote"
class="btn @(Model.OwnVote == false ? ".active": "")"
style="padding-right: 0">@Model.Downvotes 👎</button>
</div>
</form>
<partial name="_LoginPartial" model="@Url.Page("Song", new { id = Model.ID })" />
</body>
You can’t perform that action at this time.