Selector/Selector.Web/Areas/Identity/Pages/Account/Manage/Spotify.cshtml

35 lines
1.1 KiB
Plaintext
Raw Normal View History

@page
@model SpotifyModel
@{
ViewData["Title"] = "Spotify";
ViewData["ActivePage"] = ManageNavPages.Spotify;
}
2021-12-20 23:04:53 +00:00
<h4>@ViewData["Title"] <a href="https://spotify.com" target="_blank"><img src="/Spotify_Icon_RGB_White.png" class="spotify-logo central" /></a></h4>
<partial name="_StatusMessage" model="Model.StatusMessage" />
2021-12-19 22:50:03 +00:00
<div class="row">
<div class="col-md-6">
<form id="spotify-form" method="post">
@if (Model.SpotifyIsLinked)
{
2021-12-19 22:50:03 +00:00
<button id="unlink-button" type="submit" asp-page-handler="Unlink" class="btn btn-primary form-element">Unlink</button>
}
else
{
2021-12-19 22:50:03 +00:00
<button id="link-button" type="submit" asp-page-handler="Link" class="btn btn-primary form-element">Link</button>
}
</form>
</div>
</div>
2021-12-19 22:50:03 +00:00
@if (Model.SpotifyIsLinked)
{
<div class="row">
<p class="small">Token last refreshed: <span class="data-value">@Model.LastRefresh</span></p>
</div>
}
@section Scripts {
<partial name="_ValidationScriptsPartial" />
}