Sha256: dd6992cc676f5835d0af03381d97dea0e1efb47a223b2ab5efc77ff91f26da5b

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

<% @title = "Show #{current_resource.human}" %>
<h1><%= @title %></h1>
<ul class="show_entry">
  <% if current_resource.children.present? %>
    <li>
      <h2>Associations</h2>
      <% current_resource.children.each do |child| %>
        <%= link_to child.human, child.index_path %>
      <% end %>
    </li>
  <% end %>

<% show_fields.each do |field| -%>
  <li>
    <h2><%= field.label %></h2>
    <div>
      <%= render_field record, field %>
    </div>
  </li>
<% end if show_fields && record -%>
</ul>
<% content_for :additional_navigation do %>
  <ul class="buttons">
    <% (current_resource.ancestors + [current_resource]).each do |resource| %>
      <%= link_to resource.plural? ? resource.human : resource.member.to_title, resource.index_path %>
      <%= link_to resource.member.to_title, resource.path unless resource.plural? %>
    <% end %>
  </ul>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puffer-0.0.5 app/views/puffer/show.html.erb
puffer-0.0.4 app/views/puffer/show.html.erb