zotan.pw-web/zotan.pw-web/Pages/NowPlaying.cshtml

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-11-20 03:06:41 +01:00
@page "/np"
2022-11-20 16:44:40 +01:00
@using zotanpw_web.database
2022-11-20 03:06:41 +01:00
@model NowPlayingModel
@{
ViewData["title"] = "now playing";
2022-11-20 16:44:40 +01:00
var db = new Database.DbConn();
var albums = db.AlbumHistory.OrderByDescending(p => p.EntryId).Take(10);
2022-11-20 03:06:41 +01:00
}
<p>Here you can see what kind of music I've been listening to lately. This table is updated every couple minutes from multiple data sources.</p>
<p style="background-color:#333; padding:5px 7px;">Links to my music library / webplayer are accessible to authorized users only. If you think this includes you, but something isn't working, <a href="/#contact">DM me</a>.</p>
<ul>
<li>Albums</li>
</ul>
<h3>>> Albums</h3>
<table>
2022-11-20 16:44:40 +01:00
<th>Date</th>
2022-11-20 03:06:41 +01:00
<th>Artist</th>
<th>Album</th>
<th>Link</th>
2022-11-20 16:44:40 +01:00
@foreach (var album in albums) {
<tr>
<td>@album.DateTime.ToString("yyyy-MM-dd")</td>
<td>@album.Artist</td>
<td>@album.Title</td>
<td>
<a href="@album.Link" target="_blank">@album.Source</a>
</td>
</tr>
}
2022-11-20 03:06:41 +01:00
<tr>
2022-11-20 16:44:40 +01:00
<td>2022-11-04</td>
2022-11-20 03:06:41 +01:00
<td>t+pazolite</td>
<td>Refactoring Travel</td>
2022-11-20 16:44:40 +01:00
<td>
<a href="https://music.apple.com/gb/album/%E3%83%AA%E3%83%95%E3%82%A1%E3%82%AF%E3%82%BF%E3%83%AA%E3%83%B3%E3%82%B0-%E3%83%88%E3%83%A9%E3%83%99%E3%83%AB/1494424249">Apple Music</a>
</td>
2022-11-20 03:06:41 +01:00
</tr>
</table>