index.html.slim
499 Bytes
.admin-index
h2
| Pools
= link_to 'New Pool', new_admin_pool_path, style: 'float: right'
- attrs = %i[name editable_until active]
table
thead
- attrs.each do |a|
th = Pool.human_attribute_name(a)
th Matches
th
tbody
tbody
- @object_collection.each do |model|
- attrs.each do |a|
td = model.send(a)
td #{model.matches.count} matches
td
= link_to 'Edit', edit_admin_pool_path(model)