mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 23:17:59 +01:00
33 lines
782 B
Text
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
|