From 653440b192f1499271ec4a0147e61c374e799d2a Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 17 Mar 2023 21:03:49 +0000 Subject: [PATCH] backend: add tag links in media#show --- lib/PoorBooru/Backend/Controller/Media.pm | 2 +- templates/media.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PoorBooru/Backend/Controller/Media.pm b/lib/PoorBooru/Backend/Controller/Media.pm index d0f6b3d..93ba2b9 100644 --- a/lib/PoorBooru/Backend/Controller/Media.pm +++ b/lib/PoorBooru/Backend/Controller/Media.pm @@ -57,7 +57,7 @@ sub show ($self) return $self->render( template => "media", media => $media, - #pager => { $self->pager_links($res->json->{pager}) }, + pager => { $self->pager_links($res->json->{pager}) }, ); }; diff --git a/templates/media.html.ep b/templates/media.html.ep index 849d009..d5af6e6 100644 --- a/templates/media.html.ep +++ b/templates/media.html.ep @@ -15,6 +15,6 @@
<%= $media->{content_type} %>
Tags
<% for my $tag ($media->{tags}->@*) { %> -
<%= $tag %>
+
<%= link_to $tag => url_for("tag_show", tag_id_or_name => $tag) %>
<% } %>