Fix column width; sort by datetime instead of id
This commit is contained in:
parent
6a37419252
commit
cd5b050b83
|
@ -5,7 +5,7 @@
|
||||||
@{
|
@{
|
||||||
ViewData["title"] = "now playing";
|
ViewData["title"] = "now playing";
|
||||||
var db = new Database.DbConn();
|
var db = new Database.DbConn();
|
||||||
var albums = db.AlbumHistory.OrderByDescending(p => p.EntryId).Take(10);
|
var albums = db.AlbumHistory.OrderByDescending(p => p.DateTime).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>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>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<th style="width:10ch">Date</th>
|
<th style="width:10ch">Date</th>
|
||||||
<th>Artist</th>
|
<th>Artist</th>
|
||||||
<th>Album</th>
|
<th>Album</th>
|
||||||
<th style="width: 20ch">Link</th>
|
<th style="width:12ch">Link</th>
|
||||||
@foreach (var album in albums.Take(25)) {
|
@foreach (var album in albums.Take(25)) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>@album.DateTime.ToString("yyyy-MM-dd")</td>
|
<td>@album.DateTime.ToString("yyyy-MM-dd")</td>
|
||||||
|
|
Loading…
Reference in a new issue