philomena/lib/philomena_web/templates/moderation_log/index.html.slime

34 lines
782 B
Text
Raw Permalink Normal View History

2021-11-07 19:51:55 +01:00
elixir:
2024-06-06 22:28:35 +02:00
route = fn p -> ~p"/moderation_logs?#{p}" end
2021-11-07 19:51:55 +01:00
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