25 lines
531 B
Plaintext
25 lines
531 B
Plaintext
% layout 'default';
|
|
% title 'Author: ' . $author->name;
|
|
<h1><%= title %></h1>
|
|
|
|
Books by <strong><%= $author->name %></strong>
|
|
|
|
<p/>
|
|
<div>
|
|
<table>
|
|
<tr class="header">
|
|
<th class="book-wide">Title</th>
|
|
</tr>
|
|
% my $n = 0; for my $book ($book_page->all) {
|
|
<tr <%== 'class="odd"' if (++$n % 2) %>>
|
|
<td><%= link_to(
|
|
trct($book->title, 100) => gutenberg_url($book->gutenberg_id)
|
|
) %>
|
|
</td>
|
|
</tr>
|
|
% }
|
|
</table>
|
|
</div>
|
|
|
|
%= include '_page-navigation', items_name => 'books';
|