Sha256: c44430845e8c8062f30c9c4c3c325075761e33a8f2b2f41b1074fe0da52fdbbe

Contents?: true

Size: 839 Bytes

Versions: 9

Compression:

Stored size: 839 Bytes

Contents

h1 <%= module_name_formatted.pluralize.camelize %>

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

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