2023-03-17 20:58:12 +01:00
|
|
|
% layout "main";
|
|
|
|
|
|
|
|
<p class="text-center">
|
|
|
|
<%= link_to $media->{download} => begin %>
|
2023-03-19 22:59:41 +01:00
|
|
|
<%= image $media->{download} %>
|
2023-03-17 20:58:12 +01:00
|
|
|
<% 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>
|
2023-03-19 22:59:41 +01:00
|
|
|
% if ($media->{tags}->@* == 0) {
|
|
|
|
<dd>None yet.</dd>
|
|
|
|
% } else {
|
2023-03-24 22:42:19 +01:00
|
|
|
<dd>
|
|
|
|
% for my $tag ($media->{tags}->@*) {
|
|
|
|
<%= link_to $tag => url_for("tag_show", tag_id_or_name => $tag) %>
|
|
|
|
% }
|
|
|
|
</dd>
|
2023-03-19 22:59:41 +01:00
|
|
|
% }
|
2023-03-17 20:58:12 +01:00
|
|
|
</dl>
|