Websites/app/views/yiff_rest/state/index.html.erb

37 lines
768 B
Plaintext
Raw Normal View History

2024-05-03 03:04:43 +00:00
<% content_for(:html_head) do %>
<!-- Lupines are the best :3 -->
<%= render partial: "yiff_rest/home/head" %>
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "YiffyAPI State",
"alternateName": "Yiffy API State",
"url": "https://state.yiff.rest",
"sameAs": [
"https://v2.yiff.rest/state"
]
}
</script>
<% end %>
<table>
<thead>
<tr>
<th>Category Name</th>
<th>Image Count</th>
</tr>
</thead>
<tbody>
<% @state.each do |state| %>
<tr class="<%= state[:state] %>">
<td><%= state[:name] %></td>
<td><%= state[:count] %></td>
</tr>
<% end %>
</tbody>
</table>