Websites/app/views/yiff_rest/api_v2/images/index.html.erb

34 lines
999 B
Plaintext
Raw Normal View History

<%= 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: 43%;">Sources</th>
<th style="width: 10%"></th>
</tr>
</thead>
<tbody>
<% @images.each do |img| %>
<tr>
<% if img.is_external? %>
<%= render(partial: "yiff_rest/api_v2/images/external_image", locals: { image: img, external: img.external_api_image }) %>
<% else %>
<%= render(partial: "yiff_rest/api_v2/images/image", locals: { image: img }) %>
<% end %>
</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>