backend: implement /media/:media_id
This commit is contained in:
parent
aa5e4ffe29
commit
72412a7889
3 changed files with 57 additions and 0 deletions
20
templates/media.html.ep
Normal file
20
templates/media.html.ep
Normal file
|
@ -0,0 +1,20 @@
|
|||
% 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>
|
||||
<% for my $tag ($media->{tags}->@*) { %>
|
||||
<dd><%= $tag %></dd>
|
||||
<% } %>
|
||||
</dl>
|
Reference in a new issue