diff --git a/public/default.css b/public/default.css index cc3040f..90e4aed 100644 --- a/public/default.css +++ b/public/default.css @@ -1,3 +1,31 @@ table { border: 1px solid grey; } + +th { + text-align: left; +} + +th, td { + padding: 2px 0.5em; +} + +td.count, th.count { + text-align: right; +} + +th.author-medium { + min-width: 20em; +} + +th.author-wide { + min-width: 35em; +} + +th.book-medium { + min-width: 25em; +} + +th.book-wide { + min-width: 35em; +} diff --git a/templates/book/author.html.ep b/templates/book/author.html.ep index a21ae62..55dc20e 100644 --- a/templates/book/author.html.ep +++ b/templates/book/author.html.ep @@ -8,7 +8,7 @@ Books by <%= $author->name %>
- + % for my $book ($book_page->all) { diff --git a/templates/book/authors.html.ep b/templates/book/authors.html.ep index cb7c303..bb3c5af 100644 --- a/templates/book/authors.html.ep +++ b/templates/book/authors.html.ep @@ -17,13 +17,13 @@
TitleTitle
- - + + % for my $author ($author_page->all) { - - + diff --git a/templates/book/books.html.ep b/templates/book/books.html.ep index 29b4a1e..68846e7 100644 --- a/templates/book/books.html.ep +++ b/templates/book/books.html.ep @@ -20,7 +20,7 @@ author like '[no author]'.
BooksAuthored byBooksAuthored by
<%= $author->books->count %> + <%= $author->books->count %> <%= link_to($author->name => 'author' => { id => $author->id, page_number => 1 }) %>
- + % for my $book ($book_page->all) {
TitleAuthorTitleAuthor