mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 23:08:00 +01:00
19 lines
544 B
Elixir
19 lines
544 B
Elixir
|
defmodule PhilomenaWeb.SettingView do
|
||
|
use PhilomenaWeb, :view
|
||
|
|
||
|
def theme_options(conn) do
|
||
|
[
|
||
|
[key: "Default", value: "default", data: [theme_path: Routes.static_path(conn, "/css/default.css")]],
|
||
|
[key: "Dark", value: "dark", data: [theme_path: Routes.static_path(conn, "/css/dark.css")]],
|
||
|
[key: "Red", value: "red", data: [theme_path: Routes.static_path(conn, "/css/red.css")]]
|
||
|
]
|
||
|
end
|
||
|
|
||
|
def local_tab_class(conn) do
|
||
|
case conn.assigns.current_user do
|
||
|
nil -> ""
|
||
|
_user -> "hidden"
|
||
|
end
|
||
|
end
|
||
|
end
|