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

34 lines
801 B
Text
Raw Normal View History

2021-11-07 19:51:55 +01:00
elixir:
route = fn p -> Routes.moderation_log_path(@conn, :index, 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