Sha256: 7bfe333d96bc6fa2ac38a15c62989b218d32a4e4a292d92dac58dcb62b0dd74d

Contents?: true

Size: 1.11 KB

Versions: 11

Compression:

Stored size: 1.11 KB

Contents

- model_class = <%= model_class %>
%h1= model_class.model_name.human.pluralize
%table.striped
  %thead.thead-black
    %tr
      %th= model_class.human_attribute_name(:id)
      <%- columns.each do |column| -%>
      %th= model_class.human_attribute_name(:<%= column.name %>)
      <%- end -%>
      %th= model_class.human_attribute_name(:created_at)
      %th Actions
  %tbody
    - @<%= plural_resource_name %>.each do |<%= resource_name %>|
      %tr
        %td= link_to <%= resource_name %>.id, <%= singular_controller_routing_path %>_path(<%= resource_name %>)
        <%- columns.each do |column| -%>
        %td= <%= resource_name %>.<%= column.name %>
        <%- end -%>
        %td=l <%= resource_name %>.created_at
        %td
          = link_to 'Edit', edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-small'
          = link_to 'Destroy', <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :data => { :confirm => 'Are you sure?' }, :class => 'btn btn-small'

= link_to 'New', new_<%= singular_controller_routing_path %>_path, :class => 'btn'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kube-rails-0.4.0 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.3.1 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.3.0 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.2.0 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.0.10 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.0.9 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.0.8 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.0.7 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.0.6 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.0.5 lib/generators/kube/themed/templates/index.html.haml
kube-rails-0.0.4 lib/generators/kube/themed/templates/index.html.haml