Tweak how much of names and titles to display in tables.

This commit is contained in:
barnold 2022-10-12 19:37:20 +01:00
parent 179be1f700
commit 92ddca2c0d
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ min => 0, maxlength => 4, size => 4 %> books
<tr <%== 'class="odd"' if (++$n % 2) %>>
<td class="count"><%= $author->books->count %></td>
<td>
<%= link_to($author->name => 'author' =>
<%= link_to(trct($author->name, 100) => 'author' =>
{ id => $author->id, page_number => 1 }) %>
</td>
</tr>

View File

@ -25,11 +25,11 @@
% my $n = 0; for my $book ($book_page->all) {
<tr <%== 'class="odd"' if (++$n % 2) %>>
<td><%= link_to(
trct($book->title, 50) => gutenberg_url($book->gutenberg_id)
trct($book->title, 55) => gutenberg_url($book->gutenberg_id)
) %>
</td>
<td>
<%= link_to(trct($book->author->name, 40) => 'author' =>
<%= link_to(trct($book->author->name, 45) => 'author' =>
{ id => $book->author->id, page_number => 1 }) %>
</td>
</tr>