Sha256: f41621b1313db34554ddf04d5d1abd0fb7cf1ae4a8f9d2a100ea667e2fffa0f5

Contents?: true

Size: 971 Bytes

Versions: 9

Compression:

Stored size: 971 Bytes

Contents

<%- if options[:metatags] -%>
h3.ui.header = title('<%%= plural_table_name.titleize %>')
<%- else -%>
h3.ui.header <%%= plural_table_name.titleize %>
<%- end -%>

table.ui.celled.table
  thead
    tr
<%% attributes.reject(&:password_digest?).each do |attribute| -%>
      th scope="col" <%%= attribute.human_name %>
<%% end -%>
      th colspan="3"
  tbody
  - @<%%= plural_table_name %>.each do |<%%= singular_table_name %>|
    tr
<%% attributes.each do |attribute| -%>
      td = <%%= singular_table_name %>.<%%= attribute.name %>
<%% end -%>
      td = link_to 'Show', <%%= singular_table_name %>
      td = link_to 'Edit', edit_<%%= singular_table_name %>_path(<%%= singular_table_name %>)
      td = link_to 'Destroy', <%%= singular_table_name %>, data: { confirm: 'Are you sure?' }, method: :delete
<% if options[:pagination] -%>
= render 'shared/pagination'
<% end -%>
br
= link_to 'New <%%= singular_table_name.titleize %>', new_<%%= singular_route_name %>_path

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
semantic_ui_views_generator-0.0.9 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt
semantic_ui_views_generator-0.0.8 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt
semantic_ui_views_generator-0.0.7 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt
semantic_ui_views_generator-0.0.6 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt
semantic_ui_views_generator-0.0.5 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt
semantic_ui_views_generator-0.0.4 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt
semantic_ui_views_generator-0.0.3 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt
semantic_ui_views_generator-0.0.2 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt
semantic_ui_views_generator-0.0.1 lib/generators/semantic/templates/scaffolds/slim/index.html.slim.tt