mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
6 lines
203 B
Elixir
6 lines
203 B
Elixir
defmodule PhilomenaWeb.SearchView do
|
|
use PhilomenaWeb, :view
|
|
|
|
def scope(conn), do: PhilomenaWeb.ImageScope.scope(conn)
|
|
def hides_images?(conn), do: can?(conn, :hide, %Philomena.Images.Image{})
|
|
end
|