Tweak how much of names and titles to display in tables.
This commit is contained in:
parent
179be1f700
commit
92ddca2c0d
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue