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

39 lines
1 KiB
Text
Raw Normal View History

2019-12-15 23:52:51 +01:00
- 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)
' &bull;
=> link "Delete", to: Routes.admin_mod_note_path(@conn, :delete, note), data: [confirm: "Are you really, really sure?", method: "delete"]