Sha256: b50ede213af6bab3f3455bbb2aabf29ea135382676d0dbf843d1408e6455c0cf

Contents?: true

Size: 596 Bytes

Versions: 5

Compression:

Stored size: 596 Bytes

Contents

<div>
<table class="inspector data-mapper-collection">
  <thead>
    <tr>
<%- columns.each do |p| -%>
      <th><p><%= column_label(p) %></p></th>
<%- end -%>
      <th></th>
    </tr>
  </thead>
  <tbody class="records">
<%- records.each_with_index do |record, i| -%>
<%-
tr_class = (i % 2 == 0) ? "even-record" : ""
tr_class += " #{list_row_class(record)}" if respond_to? :list_row_class
-%>
    <tr class="record <%=tr_class%>">
<%- columns.each do |p| -%>
      <td><%= column_value(record, p) %></td>
<%- end -%>
    </tr>
<%- end -%>
  </tbody>
</table>
 
<%= link_to_new 'New' %>

</div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
maiha-merb_inspector-0.2.9 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.3.0 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.3.1 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.3.2 templates/data_mapper/collection/_records.html.erb
merb_inspector-0.3.2 templates/data_mapper/collection/_records.html.erb