wiki/lib/wiki_web/templates/page/new.html.eex

6 lines
210 B
Elixir

<h1>New Page</h1>
<%= render "form.html", assigns |> Map.put(:action, Routes.page_path(@conn, :create)) |> Map.put(:initial_file, true) %>
<span><%= link "Back", to: Routes.page_path(@conn, :index) %></span>