backend: add tag links in media#show

This commit is contained in:
Lucas 2023-03-17 21:03:49 +00:00
parent 58989f2c53
commit 653440b192
2 changed files with 2 additions and 2 deletions

View File

@ -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}) },
);
};

View File

@ -15,6 +15,6 @@
<dd><%= $media->{content_type} %></dd>
<dt>Tags</dt>
<% for my $tag ($media->{tags}->@*) { %>
<dd><%= $tag %></dd>
<dd><%= link_to $tag => url_for("tag_show", tag_id_or_name => $tag) %></dd>
<% } %>
</dl>