mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
16 lines
305 B
Elixir
16 lines
305 B
Elixir
defmodule ChessWeb.PageView do
|
|
use ChessWeb, :view
|
|
|
|
def login_link(conn) do
|
|
gettext("Log in")
|
|
|> link(to: session_path(conn, :new))
|
|
|> safe_to_string
|
|
end
|
|
|
|
def register_link(conn) do
|
|
gettext("Register")
|
|
|> link(to: registration_path(conn, :new))
|
|
|> safe_to_string
|
|
end
|
|
end
|