mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 15:08:00 +01:00
38 lines
1 KiB
Text
38 lines
1 KiB
Text
- route = fn p -> Routes.admin_mod_note_path(@conn, :index, p) end
|
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @mod_notes, route: route, conn: @conn
|
|
|
|
h2 Mod Notes
|
|
|
|
.block
|
|
.block__header
|
|
span.block__header__title Mod Notes
|
|
= pagination
|
|
|
|
.block__content
|
|
table.table
|
|
thead
|
|
tr
|
|
td Object
|
|
td Note
|
|
td Time
|
|
td Moderator
|
|
td Actions
|
|
tbody
|
|
= for {body, note} <- @mod_notes do
|
|
tr
|
|
td
|
|
= link_to_noted_thing(@conn, note.notable)
|
|
|
|
td
|
|
== body
|
|
|
|
td
|
|
= pretty_time note.created_at
|
|
|
|
td
|
|
= link note.moderator.name, to: Routes.profile_path(@conn, :show, note.moderator)
|
|
|
|
td
|
|
=> link "Edit", to: Routes.admin_mod_note_path(@conn, :edit, note)
|
|
' •
|
|
=> link "Delete", to: Routes.admin_mod_note_path(@conn, :delete, note), data: [confirm: "Are you really, really sure?", method: "delete"]
|