Sha256: bdf60be74133cbb8a75999734fb1fa490dfe60c8040c0f0ab2c1bd8ce862afb6

Contents?: true

Size: 819 Bytes

Versions: 2

Compression:

Stored size: 819 Bytes

Contents

<%
# decorate first on every page or partial
decorated = decorate resource
%>
<article>
  <%= render 'wallaby/resources/shared/resource_nav' %>
  <div class="page-header">
    <h1>
      <%= show_title decorated %>
    </h1>
  </div>
  <%= render 'wallaby/shared/flash_messages' %>
  <section class="fields">
    <table class="detail-table">
      <thead>
        <tr>
          <th>Field</th>
          <th>Value</th>
        </tr>
      </thead>
      <tbody>
        <% decorated.show_field_names.each do |field_name| %>
          <tr>
            <th><%= decorated.show_label_of field_name %></th>
            <td><%= type_partial_render decorated.show_type_of(field_name).to_s, object: decorated, field_name: field_name %></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </section>
</article>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wallaby-4.1.6 app/views/wallaby/resources/show.html.erb
wallaby-5.0.1 app/views/wallaby/resources/show.html.erb