<%= @page.title %>

<%= link "Edit", to: Routes.page_path(@conn, :edit, @page) %> <%= link "Back", to: Routes.page_path(@conn, :index) %>
<%= raw(@page.html) %>
<%= for upload <- @page.uploads do %>
<%= cond do %> <% String.starts_with?(upload.content_type, "image/") -> %> <% String.starts_with?(upload.content_type, "video/") -> %> <% String.starts_with?(upload.content_type, "audio/") -> %> <% true -> %> <%= upload.relative_path %> <% end %>
<% end %>

Backlinks