This repository has been archived on 2023-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
temple/priv/templates/temple.gen.html/show.html.exs

17 lines
428 B
Elixir

h1 do: "Show <%= schema.human_singular %>"
ul do <%= for {k, _} <- schema.attrs do %>
li do
strong do: "<%= Phoenix.Naming.humanize(Atom.to_string(k)) %>"
@<%= schema.singular %>.<%= k %>
end <% end %>
span do
link "Edit", to: Routes.<%= schema.route_helper %>_path(@conn, :edit, @<%= schema.singular %>)
end
span do
link "Back", to: Routes.<%= schema.route_helper %>_path(@conn, :index)
end
end