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

37 lines
803 B
Text
Raw Permalink Normal View History

2019-12-15 21:02:13 +01:00
h2 Badges
- 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
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
=> link "Users", to: ~p"/admin/badges/#{badge}/users"
2019-12-25 22:10:56 +01:00
' &bull;
= link "Edit", to: ~p"/admin/badges/#{badge}/edit"
2019-12-15 21:02:13 +01:00
.block__header.block__header--light
= pagination