pgc-www/templates/book/author.html.ep

25 lines
531 B
Plaintext
Raw Normal View History

2022-09-18 13:09:17 +00:00
% layout 'default';
2022-09-18 16:31:01 +00:00
% title 'Author: ' . $author->name;
2022-09-18 17:08:40 +00:00
<h1><%= title %></h1>
2022-09-18 13:09:17 +00:00
Books by <strong><%= $author->name %></strong>
<p/>
<div>
<table>
2022-09-27 09:56:45 +00:00
<tr class="header">
2022-09-27 09:33:01 +00:00
<th class="book-wide">Title</th>
</tr>
2022-09-27 09:56:45 +00:00
% my $n = 0; for my $book ($book_page->all) {
<tr <%== 'class="odd"' if (++$n % 2) %>>
2022-09-26 08:14:39 +00:00
<td><%= link_to(
trct($book->title, 100) => gutenberg_url($book->gutenberg_id)
) %>
</td>
</tr>
% }
</table>
</div>
%= include '_page-navigation', items_name => 'books';