1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/lib/chess_web/views/page_view.ex
2018-04-08 23:03:35 -04:00

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