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

19 lines
315 B
Elixir

<h1>Show Page</h1>
<ul>
<li>
<strong>Title:</strong>
<%= @page.title %>
</li>
<li>
<strong>Content:</strong>
<%= raw(@content) %>
</li>
</ul>
<span><%= link "Edit", to: Routes.page_path(@conn, :edit, @page) %></span>
<span><%= link "Back", to: Routes.page_path(@conn, :index) %></span>