philomena/lib/philomena_web/templates/moderation_log/index.html.slime
2024-06-06 22:28:35 +02:00

33 lines
782 B
Text

elixir:
route = fn p -> ~p"/moderation_logs?#{p}" end
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @moderation_logs, route: route, conn: @conn
h1 Listing Moderation Logs
block
.block__header
.page__pagination = pagination
table
thead
tr
th Moderator
th Type
th Body
th Creation time
th Actions
tbody
= for log <- @moderation_logs do
tr
td = render PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: log.user}, conn: @conn
td = log.type
td = log.body
td = pretty_time(log.created_at)
td
= link to: log.subject_path do
i.fa.fa-eye>
' View subject
block
.block__header
.page__pagination = pagination