25 lines
534 B
Plaintext
25 lines
534 B
Plaintext
% layout "main";
|
|
|
|
<p class="text-center">
|
|
<%= link_to $media->{download} => begin %>
|
|
<%= image $media->{download} %>
|
|
<% end %>
|
|
</p>
|
|
|
|
<dl>
|
|
<dt>ID</dt>
|
|
<dd><%= $media->{id} %></dd>
|
|
<dt>Upload name</dt>
|
|
<dd><%= $media->{name} %></dd>
|
|
<dt>Content-Type</dt>
|
|
<dd><%= $media->{content_type} %></dd>
|
|
<dt>Tags</dt>
|
|
% if ($media->{tags}->@* == 0) {
|
|
<dd>None yet.</dd>
|
|
% } else {
|
|
<dd><%= c($media->{tags}->@*)
|
|
->map(sub { link_to $_ => url_for("tag_show", tag_id_or_name => $_) })
|
|
->join(", ") %>.</dd>
|
|
% }
|
|
</dl>
|