Sha256: bb9dba7236708bb1317054b102166b2d326adb5571647b6008e135167cfb30c1

Contents?: true

Size: 1.54 KB

Versions: 17

Compression:

Stored size: 1.54 KB

Contents

<div style="clear: both;">
  <%if !@resources.empty? %>
    <div class="autoscroll">
      <table class="list resources">
        <tr>
          <% index_attributes.each do |index_attribute| %>
            <% unless exclude_index_attributes.find { |eia| index_attribute =~ /#{eia}/ } %>
              <th>
                <%= l("label_#{index_attribute.is_a?(Array) ? index_attribute[0] : index_attribute}") %>
              </th>
            <% end %>
          <% end %>
          <th></th>
          <th></th>
        </tr>

        <% @resources.each do |resource| %>
          <tr>
            <% index_attributes.each do |index_attribute| %>
              <% attribute_name = index_attribute.is_a?(Array)   ? index_attribute[0] : index_attribute %>
              <% attribute_values = index_attribute.is_a?(Array) ? index_attribute[1] : [] %>

              <% unless exclude_index_attributes.select { |eia| attribute_name =~ /#{eia}/ }.first %>
                <td>
                  <%= format_field(resource.send(attribute_name), attribute_values) %>
                </td>
              <% end %>
            <% end %>

            <td><%= link_to l(:button_edit)  , url_for([:edit] | resource_url(resource)) %></td>
            <td><%= link_to l(:button_delete), url_for(resource_url(resource)), confirm: l(:access_delete_confirmation_message), method: :delete %></td>
          </tr>
        <% end %>
      </table>
    </div>

    <%= paginate @resources %>

    <br />
  <% else %>
    <h3> <%= l("no_#{snake_case_model_name}_message")%> </h1>
  <% end %>
</div>

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
cruj_cruj_cruj_visagio-1.0.1 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj_visagio-1.0.0 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.15 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.14 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.13 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.12 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.11 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.10 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.9 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.8 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.7 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.6 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.5 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.4 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.3 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.2 app/views/cruj_cruj_cruj/_list_table.html.erb
cruj_cruj_cruj-0.0.1 app/views/cruj_cruj_cruj/_list_table.html.erb