2023-12-14 16:03:24 +00:00
|
|
|
@page
|
2024-05-05 02:18:20 +01:00
|
|
|
@using OliverBooth.Common.Data.Web
|
2023-12-14 16:03:24 +00:00
|
|
|
@model OliverBooth.Pages.Books
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Reading List";
|
|
|
|
}
|
|
|
|
|
2023-12-22 14:49:16 +00:00
|
|
|
<main class="container">
|
|
|
|
<h1 class="display-4">Reading List</h1>
|
|
|
|
<p>
|
|
|
|
This is a list of the books I've read, I'm currently reading, or that I plan to read. Not every book is listed
|
|
|
|
here, but I will update this list as I try to remember what it is I've read in the past.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
This list is also available on <a href="https://www.goodreads.com/review/list/145592619">Goodreads</a>.
|
|
|
|
</p>
|
2023-12-14 16:03:24 +00:00
|
|
|
|
2023-12-22 14:49:16 +00:00
|
|
|
<p class="lead">Currently Reading</p>
|
|
|
|
<table class="table reading-list">
|
|
|
|
<thead>
|
2023-12-14 16:03:24 +00:00
|
|
|
<tr>
|
2023-12-22 16:03:22 +00:00
|
|
|
<th colspan="2" style="width: 50%">Title</th>
|
2023-12-22 14:49:16 +00:00
|
|
|
<th style="width: 25%">Author</th>
|
|
|
|
<th style="width: 25%">ISBN</th>
|
2023-12-14 16:03:24 +00:00
|
|
|
</tr>
|
2023-12-22 14:49:16 +00:00
|
|
|
</thead>
|
2023-12-14 16:03:24 +00:00
|
|
|
|
2023-12-22 14:49:16 +00:00
|
|
|
<tbody>
|
|
|
|
@foreach (IBook book in Model.CurrentlyReading.OrderBy(b => b.Author).ThenBy(b => b.Title))
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img class="book-cover" src="https://cdn.olivr.me/img/books/@(book.Isbn.Trim()).jpg" alt="Book Cover">
|
|
|
|
</td>
|
2023-12-22 16:03:22 +00:00
|
|
|
<td>@book.Title.Trim()</td>
|
2023-12-22 14:49:16 +00:00
|
|
|
<td>@book.Author.Trim()</td>
|
|
|
|
<td style="font-family: monospace">
|
|
|
|
@book.Isbn.Trim()<br><img src="@book.GetBarcode()" alt="@book.Isbn">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-12-14 16:03:24 +00:00
|
|
|
|
2023-12-22 14:49:16 +00:00
|
|
|
<p class="lead">Plan to Read</p>
|
|
|
|
<table class="table reading-list">
|
|
|
|
<thead>
|
2023-12-14 16:03:24 +00:00
|
|
|
<tr>
|
2023-12-22 16:03:22 +00:00
|
|
|
<th colspan="2" style="width: 50%">Title</th>
|
2023-12-22 14:49:16 +00:00
|
|
|
<th style="width: 25%">Author</th>
|
|
|
|
<th style="width: 25%">ISBN</th>
|
2023-12-14 16:03:24 +00:00
|
|
|
</tr>
|
2023-12-22 14:49:16 +00:00
|
|
|
</thead>
|
2023-12-14 16:03:24 +00:00
|
|
|
|
2023-12-22 14:49:16 +00:00
|
|
|
<tbody>
|
|
|
|
@foreach (IBook book in Model.PlanToRead.OrderBy(b => b.Author).ThenBy(b => b.Title))
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img class="book-cover" src="https://cdn.olivr.me/img/books/@(book.Isbn.Trim()).jpg" alt="Book Cover">
|
|
|
|
</td>
|
2023-12-22 16:03:22 +00:00
|
|
|
<td>@book.Title.Trim()</td>
|
2023-12-22 14:49:16 +00:00
|
|
|
<td>@book.Author.Trim()</td>
|
|
|
|
<td style="font-family: monospace">
|
|
|
|
@book.Isbn.Trim()<br><img src="@book.GetBarcode()" alt="@book.Isbn">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-12-14 16:03:24 +00:00
|
|
|
|
2023-12-22 14:49:16 +00:00
|
|
|
<p class="lead">Read</p>
|
|
|
|
<table class="table reading-list">
|
|
|
|
<thead>
|
2023-12-14 16:03:24 +00:00
|
|
|
<tr>
|
2023-12-22 16:03:22 +00:00
|
|
|
<th colspan="2" style="width: 50%">Title</th>
|
2023-12-22 14:49:16 +00:00
|
|
|
<th style="width: 25%">Author</th>
|
|
|
|
<th style="width: 25%">ISBN</th>
|
2023-12-14 16:03:24 +00:00
|
|
|
</tr>
|
2023-12-22 14:49:16 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach (IBook book in Model.Read.OrderBy(b => b.Author).ThenBy(b => b.Title))
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img class="book-cover" src="https://cdn.olivr.me/img/books/@(book.Isbn.Trim()).jpg" alt="Book Cover">
|
|
|
|
</td>
|
2023-12-22 16:03:22 +00:00
|
|
|
<td>@book.Title.Trim()</td>
|
2023-12-22 14:49:16 +00:00
|
|
|
<td>@book.Author.Trim()</td>
|
|
|
|
<td style="font-family: monospace">
|
|
|
|
@book.Isbn.Trim()<br><img src="@book.GetBarcode()" alt="@book.Isbn">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</main>
|