philomena/lib/philomena_web/templates/admin/badge/index.html.slime

37 lines
803 B
Text
Raw Normal View History

2019-12-15 21:02:13 +01:00
h2 Badges
2024-06-06 22:28:35 +02:00
- route = fn p -> ~p"/admin/badges?#{p}" end
2019-12-15 21:02:13 +01:00
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @badges, route: route, conn: @conn
.block
.block__header
2024-06-06 22:28:35 +02:00
a href=~p"/admin/badges/new"
2019-12-15 21:02:13 +01:00
i.fa.fa-plus>
' New Badge
= pagination
.block__content
table.table
thead
tr
th Badge
th Image
th Options
tbody
= for badge <- @badges do
tr
td
= badge.title
td
= badge_image(badge, width: 32, height: 32)
td
2024-06-06 22:28:35 +02:00
=> link "Users", to: ~p"/admin/badges/#{badge}/users"
2019-12-25 22:10:56 +01:00
' &bull;
2024-06-06 22:28:35 +02:00
= link "Edit", to: ~p"/admin/badges/#{badge}/edit"
2019-12-15 21:02:13 +01:00
.block__header.block__header--light
= pagination