mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-02 15:48:00 +01:00
16 lines
401 B
Elixir
16 lines
401 B
Elixir
defmodule PhilomenaWeb.Admin.ApprovalView do
|
|
use PhilomenaWeb, :view
|
|
|
|
alias PhilomenaWeb.Admin.ReportView
|
|
|
|
# Shamelessly copied from ReportView
|
|
def truncated_ip_link(conn, ip), do: ReportView.truncated_ip_link(conn, ip)
|
|
|
|
def image_thumb(conn, image) do
|
|
render(PhilomenaWeb.ImageView, "_image_container.html",
|
|
image: image,
|
|
size: :thumb_tiny,
|
|
conn: conn
|
|
)
|
|
end
|
|
end
|