From 92ddca2c0de949ef772dab93a759c7e764012cfe Mon Sep 17 00:00:00 2001 From: barnold Date: Wed, 12 Oct 2022 19:37:20 +0100 Subject: [PATCH] Tweak how much of names and titles to display in tables. --- templates/book/authors.html.ep | 2 +- templates/book/books.html.ep | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/book/authors.html.ep b/templates/book/authors.html.ep index 40ba42b..a67ae3b 100644 --- a/templates/book/authors.html.ep +++ b/templates/book/authors.html.ep @@ -28,7 +28,7 @@ min => 0, maxlength => 4, size => 4 %> books > <%= $author->books->count %> - <%= link_to($author->name => 'author' => + <%= link_to(trct($author->name, 100) => 'author' => { id => $author->id, page_number => 1 }) %> diff --git a/templates/book/books.html.ep b/templates/book/books.html.ep index e132c08..0513f43 100644 --- a/templates/book/books.html.ep +++ b/templates/book/books.html.ep @@ -25,11 +25,11 @@ % my $n = 0; for my $book ($book_page->all) { > <%= link_to( - trct($book->title, 50) => gutenberg_url($book->gutenberg_id) + trct($book->title, 55) => gutenberg_url($book->gutenberg_id) ) %> - <%= link_to(trct($book->author->name, 40) => 'author' => + <%= link_to(trct($book->author->name, 45) => 'author' => { id => $book->author->id, page_number => 1 }) %>