67 lines
2.4 KiB
Plaintext
67 lines
2.4 KiB
Plaintext
<%= render "yiff_rest/api_v2/manage/nav" %>
|
|
|
|
<div class="category-image-list pt-2" style="padding-bottom: 70px;">
|
|
<table class="table table-striped table-dark">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 12%;"></th>
|
|
<th style="width: 10%;">Artists</th>
|
|
<th style="width: 25%;">Details</th>
|
|
<th style="width: 45%;">Sources</th>
|
|
<th style="width: 8%"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @images.each do |img| %>
|
|
<tr>
|
|
<td style="width: 12%">
|
|
<%= link_to(img.url, target: "_blank", rel: "noopener") do %>
|
|
<%= image_tag(img.url, class: "img-fluid img-thumbnail") %>
|
|
<% end %>
|
|
</td>
|
|
<td><%= img.artists.join(", ") %></td>
|
|
<td>
|
|
<ul class="details">
|
|
<li>Resolution: <b><%= img.width %>x<%= img.height %></b></li>
|
|
<li>MD5: <b><%= img.md5 %></b></li>
|
|
<li>Type: <b><%= img.file_ext %></b></li>
|
|
<li>Size: <b><%= number_to_human_size(img.file_size) %></b></li>
|
|
<li>Creator: <b><%= img.creator.name %></b></li>
|
|
<li>Created At: <b><%= compact_time(img.created_at) %></b></li>
|
|
<li>Updated At: <b><%= compact_time(img.updated_at) %></b></li>
|
|
<% unless @sp[:category].present? %>
|
|
<li>Category: <b><%= img.category %></b></li>
|
|
<% end %>
|
|
<li>
|
|
Upload Type:
|
|
<% if img.original_url.present? %>
|
|
<%= link_to "<b>url</b>".html_safe, img.original_url %>
|
|
<% else %>
|
|
<b>file</b>
|
|
<% end %>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
<td>
|
|
<% img.sources.each do |source| %>
|
|
<%= link_to source, source %><br>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= link_to "Edit", edit_yiff_rest_api_v2_manage_image_path(manage_id: params[:id], id: img.id) %> |
|
|
<%= link_to "Delete", yiff_rest_api_v2_manage_image_path(manage_id: params[:id], id: img.id), method: :delete %><br>
|
|
<%= link_to "Delete W/R", delete_with_reason_yiff_rest_api_v2_manage_image_path(manage_id: params[:id], id: img.id) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<footer class="bg-dark pt-3 fixed-bottom">
|
|
<div class=" d-flex align-items-center justify-content-center">
|
|
<%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %>
|
|
</div>
|
|
</footer>
|
|
|