% layout "main";

<%= link_to $media->{download} => begin %> <%= image $media->{download} %> <% end %>

ID
<%= $media->{id} %>
Upload name
<%= $media->{name} %>
Content-Type
<%= $media->{content_type} %>
Tags
% if ($media->{tags}->@* == 0) {
None yet.
% } else {
<%= c($media->{tags}->@*) ->map(sub { link_to $_ => url_for("tag_show", tag_id_or_name => $_) }) ->join(", ") %>.
% }