Sha256: 910f095ee4f5452b3f5ca5aaca47cb61a7e69b4578fcd256ec10440807053648

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

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

<table>
  <thead>
    <tr><%attributes.each do |attribute|%>
        <%-attribute_args = attribute.split(":")-%>
        <th><%=attribute_args[0].humanize.titlecase%></th> <%end%>
    </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).ready(app.<%= module_name_formatted %>.index);
</script>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tb_core-1.2.8 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.2.7 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.2.6 lib/generators/spud/templates/views/frontend/index.html.erb
tb_core-1.2.4 lib/generators/spud/templates/views/frontend/index.html.erb