Sha256: 7e08caafc64460c73f4df100aa26f13ec4140902a78733001aafbe8746825ec0
Contents?: true
Size: 852 Bytes
Versions: 8
Compression:
Stored size: 852 Bytes
Contents
<% @title = "Show #{resource.human}" %> <h1><%= @title %></h1> <ul class="show_entry"> <% if resource.children.present? %> <li> <h2>Associations</h2> <% resource.children.each do |child| %> <%= link_to child.human, child.collection_path %> <% end %> </li> <% end %> <% show_fields.each do |field| -%> <li> <h2><%= field.label %></h2> <div> <%= render_field field, record %> </div> </li> <% end if show_fields && record -%> </ul> <% content_for :additional_navigation do %> <ul class="buttons"> <% (resource.ancestors + [resource]).each do |resource| %> <%= link_to resource.plural? ? resource.human : resource.member.to_title, resource.collection_path %> <%= link_to resource.member.to_title, resource.member_path unless resource.plural? %> <% end %> </ul> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems