mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
16 lines
444 B
Elixir
16 lines
444 B
Elixir
|
defmodule PhilomenaWeb.ModerationLogController do
|
||
|
use PhilomenaWeb, :controller
|
||
|
|
||
|
alias Philomena.ModerationLogs
|
||
|
alias Philomena.ModerationLogs.ModerationLog
|
||
|
|
||
|
plug :load_and_authorize_resource,
|
||
|
model: ModerationLog,
|
||
|
preload: [:user]
|
||
|
|
||
|
def index(conn, _params) do
|
||
|
moderation_logs = ModerationLogs.list_moderation_logs(conn)
|
||
|
render(conn, "index.html", title: "Moderation Logs", moderation_logs: moderation_logs)
|
||
|
end
|
||
|
end
|