backend: add tag links in media#show
This commit is contained in:
parent
58989f2c53
commit
653440b192
@ -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}) },
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user