* On the upload page, show the video when uploading a video or ugoira. * On the upload page, show the filesize and resolution beneath the image, instead of above it. * On the media asset show page, show the full video or ugoira instead of just the thumbnail.
29 lines
730 B
Plaintext
29 lines
730 B
Plaintext
<div id="c-media-assets">
|
|
<div id="a-show" class="fixed-width-container">
|
|
<h1 class="mb-4">Media Asset</h1>
|
|
|
|
<%= render MediaAssetComponent.new(media_asset: @media_asset) %>
|
|
|
|
<table class="striped aligned-vertical">
|
|
<% if @post.present? %>
|
|
<tr>
|
|
<th>Post</th>
|
|
<td><%= link_to "##{@post.id}", @post %></td>
|
|
</tr>
|
|
<% end %>
|
|
|
|
<tr>
|
|
<th>MD5</th>
|
|
<td><%= @media_asset.md5 %></td>
|
|
</tr>
|
|
|
|
<% @media_asset.metadata.sort.each do |key, value| %>
|
|
<tr>
|
|
<th><%= key %></th>
|
|
<td><%= link_to value, media_assets_path(search: { metadata: { key => value }}) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
</div>
|
|
</div>
|