mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 23:08:00 +01:00
36 lines
868 B
Text
36 lines
868 B
Text
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
|
|
=> link "Users", to: Routes.admin_badge_user_path(@conn, :index, badge)
|
|
' •
|
|
= link "Edit", to: Routes.admin_badge_path(@conn, :edit, badge)
|
|
|
|
.block__header.block__header--light
|
|
= pagination
|