Sha256: 7732e5a02dd33f46a344871163b41e147cd1697e857e2b264164ed99ece94985

Contents?: true

Size: 540 Bytes

Versions: 10

Compression:

Stored size: 540 Bytes

Contents

<% content_for :title, "#{klass_name}" %>
<table border="0" cellpadding="4" class="table table-hover table-bordered">
<thead>
  <tr>
    <th></th>
    <%= raw readable_attributes.map{|a| "<th>#{a.to_s.titleize}</th>\n" }.join %>
  </tr>
</thead>
<tbody>
<%- @records.each do |record| %>
  <tr>
    <td>
      <%= link_to "Edit", [:edit, record], :class => "btn btn-mini"  %>
    </td>
    <%- readable_attributes.map(&:to_sym).each do |attribute| %>
    <td><%= record[attribute] %></td>
    <% end -%>
  </tr>
<% end -%>
</tbody>
</table>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
smithycms-0.5.0 app/views/smithy/content_pieces/index.html.erb
smithycms-0.4.5 app/views/smithy/content_pieces/index.html.erb
smithycms-0.4.4 app/views/smithy/content_pieces/index.html.erb
smithycms-0.4.3 app/views/smithy/content_pieces/index.html.erb
smithycms-0.4.2 app/views/smithy/content_pieces/index.html.erb
smithycms-0.4.1 app/views/smithy/content_pieces/index.html.erb
smithycms-0.4.0 app/views/smithy/content_pieces/index.html.erb
smithycms-0.0.3 app/views/smithy/content_pieces/index.html.erb
smithycms-0.0.2 app/views/smithy/content_pieces/index.html.erb
smithycms-0.0.1 app/views/smithy/content_pieces/index.html.erb