mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 06:57:59 +01:00
36 lines
803 B
Text
36 lines
803 B
Text
h2 Badges
|
|
|
|
- route = fn p -> ~p"/admin/badges?#{p}" end
|
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @badges, route: route, conn: @conn
|
|
|
|
.block
|
|
.block__header
|
|
a href=~p"/admin/badges/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: ~p"/admin/badges/#{badge}/users"
|
|
' •
|
|
= link "Edit", to: ~p"/admin/badges/#{badge}/edit"
|
|
|
|
.block__header.block__header--light
|
|
= pagination
|