Sha256: 5dcc964f2dffa1c7c9af70f796b5547a9f166c0d0365438ea2ae760cfcc64e1c

Contents?: true

Size: 877 Bytes

Versions: 9

Compression:

Stored size: 877 Bytes

Contents

<div>
<table class="inspector data-mapper-collection">
  <thead>
    <tr>
<%- columns.each do |p| -%>
      <th><p><%= column_header(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><%=h column_value(record, p) %></td>
<%- end -%>
      <td>
        <table class="logical">
          <tr>
            <td><%= link_to_show(record) %></td>
            <td><%= link_to_edit(record) %></td>
            <td><%# delete_button(article, "Delete #{article.title}") %></td>
          </tr>
        </table>
      </td>
    </tr>
<%- end -%>
  </tbody>
</table>
 
<%= link_to_new 'New' %>

</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
maiha-merb_inspector-0.2.1 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.2.2 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.2.3 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.2.4 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.2.5.1 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.2.5 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.2.6 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.2.7 templates/data_mapper/collection/_records.html.erb
maiha-merb_inspector-0.2.8 templates/data_mapper/collection/_records.html.erb