Sha256: d0967cb50785b70e1017e7612cae4516ed74ef861563e262f9a422ce2d3c4cdd

Contents?: true

Size: 1.12 KB

Versions: 10

Compression:

Stored size: 1.12 KB

Contents

<h1><%= module_name_formatted.pluralize.camelize %></h1>

<table class="table">
  <thead>
    <tr><%attributes.each do |attribute|%>
        <%-attribute_args = attribute.split(":")-%>
        <th><%=attribute_args[0].humanize.titlecase%></th> <%end%>
      <th>&nbsp;</th>
    </tr>
  </thead>
  <tbody>
    <%% cache(cache_key_for_spud_collection(@<%=module_name_formatted%>)) do %>
      <%% @<%=module_name_formatted%>.each do |<%=module_name_formatted.singularize%>| %>
        <%% cache(<%=module_name_formatted.singularize%>) do %>
          <tr>
            <%-attributes.each do |attribute|-%>
            <%-attribute_args = attribute.split(":")-%>
            <td><%%= <%=module_name_formatted.singularize%>.<%=attribute_args[0]%> %></td>
            <%-end-%>
            <td><%%= link_to 'Details', <%=module_name_formatted.singularize%>_path(<%=module_name_formatted.singularize%>) %></td>
          </tr>
        <%% end %>
      <%% end %>
    <%% end %>
  </tbody>
</table>
<%%= will_paginate @<%=module_name_formatted%> %>

<script>
  document.addEventListener('DOMContentLoaded', app.<%= module_name_formatted %>.index);
</script>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tb_core-1.5.4 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.5.3 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.5.2 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.5.1 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.5.0 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.4.8 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.4.7 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.4.6 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.4.5 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.4.4 lib/generators/spud/templates/views/frontend/index.html.erb