mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-11 03:28:01 +01:00
34 lines
801 B
Text
34 lines
801 B
Text
|
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
|