41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
@page "/np"
|
|
@using zotanpw_web.database
|
|
@model NowPlayingModel
|
|
|
|
@{
|
|
ViewData["title"] = "now playing";
|
|
var db = new Database.DbConn();
|
|
var albums = db.AlbumHistory.OrderByDescending(p => p.EntryId).Take(10);
|
|
}
|
|
|
|
<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>
|
|
<th style="width:10ch">Date</th>
|
|
<th>Artist</th>
|
|
<th>Album</th>
|
|
<th style="width: 20ch">Link</th>
|
|
@foreach (var album in albums.Take(25)) {
|
|
<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>
|
|
}
|
|
<tr>
|
|
<td>2022-11-04</td>
|
|
<td>t+pazolite</td>
|
|
<td>Refactoring Travel</td>
|
|
<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>
|
|
</tr>
|
|
</table>
|