diff --git a/templates/media.html.ep b/templates/media.html.ep index d5af6e6..968893e 100644 --- a/templates/media.html.ep +++ b/templates/media.html.ep @@ -14,7 +14,11 @@
Content-Type
<%= $media->{content_type} %>
Tags
-<% for my $tag ($media->{tags}->@*) { %> -
<%= link_to $tag => url_for("tag_show", tag_id_or_name => $tag) %>
-<% } %> +% if ($media->{tags}->@* == 0) { +
None yet.
+% } else { +
<%= c($media->{tags}->@*) + ->map(sub { link_to $_ => url_for("tag_show", tag_id_or_name => $_) }) + ->join(", ") %>.
+% }