mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
We've added some custom field types for dragonfly images, text fields and markdown fields.
20 lines
507 B
Plaintext
20 lines
507 B
Plaintext
<% content_for(:title) { @page.page_title } %>
|
|
|
|
<header class="header">
|
|
<h1 class="header-heading"><%= content_for(:title) %></h1>
|
|
<%= link_to(
|
|
"Edit",
|
|
[:edit, Administrate::NAMESPACE, @page.resource],
|
|
class: "button",
|
|
) %>
|
|
</header>
|
|
|
|
<dl>
|
|
<% @page.attributes.each do |attribute| %>
|
|
<dt class="attribute-label"><%= attribute.name.titleize %></dt>
|
|
|
|
<dd class="attribute-data attribute-data--<%=attribute.html_class%>"
|
|
><%= render_field attribute %></dd>
|
|
<% end %>
|
|
</dl>
|