Sha256: 87b32ef8ea518baa80f6468c13094d01a0add33196e0ba098b7bec83b0a535a5

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 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-default btn-xs"  %>
    </td>
    <%- readable_attributes.map(&:to_sym).each do |attribute| %>
    <td><%= record[attribute] %></td>
    <% end -%>
  </tr>
<% end -%>
</tbody>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smithycms-0.5.1 app/views/smithy/content_pieces/index.html.erb