count-anything/app/views/home/index.html.erb
Louis Vallat d07857c011
feat: added counts and instant update and destroy
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2023-02-05 21:01:07 +01:00

11 lines
287 B
Plaintext

<div class="mt-2 row row-cols-4">
<% @counts.each { |c| %>
<div class="col text-center" data-count-id="<%= c.id %>">
<span class="fw-bold fs-1 count"><%= c.count %></span>
<div class="fw-light fs-4 name">
<%= c.name %>
</div>
</div>
<% } %>
</div>