2019-12-15 21:02:13 +01:00
|
|
|
h2 Badges
|
|
|
|
|
|
|
|
- route = fn p -> Routes.admin_badge_path(@conn, :index, p) end
|
|
|
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @badges, route: route, conn: @conn
|
|
|
|
|
|
|
|
.block
|
|
|
|
.block__header
|
|
|
|
a href=Routes.admin_badge_path(@conn, :new)
|
|
|
|
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
|
2019-12-25 22:10:56 +01:00
|
|
|
=> link "Users", to: Routes.admin_badge_user_path(@conn, :index, badge)
|
|
|
|
' •
|
2019-12-15 21:02:13 +01:00
|
|
|
= link "Edit", to: Routes.admin_badge_path(@conn, :edit, badge)
|
|
|
|
|
|
|
|
.block__header.block__header--light
|
|
|
|
= pagination
|