2021-10-26 22:52:39 +01:00
|
|
|
@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>
|
2021-10-26 22:52:39 +01:00
|
|
|
<partial name="_StatusMessage" model="Model.StatusMessage" />
|
2021-12-19 22:50:03 +00:00
|
|
|
|
2021-10-26 22:52:39 +01: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>
|
2021-10-26 22:52:39 +01:00
|
|
|
}
|
|
|
|
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>
|
2021-10-26 22:52:39 +01:00
|
|
|
}
|
|
|
|
</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>
|
|
|
|
}
|
2021-10-26 22:52:39 +01:00
|
|
|
|
|
|
|
@section Scripts {
|
|
|
|
<partial name="_ValidationScriptsPartial" />
|
|
|
|
}
|