<%= render "yiff_rest/api_v2/manage/nav" %> <% @categories.each do |category| %> <% total = category.real_count %> <% end %>
Category Name Details
<%= category.name %>
  • ID: <%= category.db %>
  • Count: <%= total %> (cache: <%= category.count %>)
  • Created At: <%= compact_time(category.created_at) %>
  • Updated At: <%= compact_time(category.updated_at) %>
  • SFW: <%= category.sfw ? "Yes" : "No" %>
  • Sources:
      <% category.sources.each do |source| %>
    • <%= source[:name] %>: <%= source[:count] %> <%# no point in having a percentage since they won't add up to 100 %> <%# ((source[:count].to_f / total.to_f) * 100).round(0) %>
    • <% end %>
<%= link_to "Manage", yiff_rest_api_v2_manage_images_path(search: { category: category.db }) %>