Sha256: 8b764677eaf1ed27a7c12b79136f4fff53be1bfe0d5a635e2f675fc0beab3733

Contents?: true

Size: 1.34 KB

Versions: 23

Compression:

Stored size: 1.34 KB

Contents

%h1 <%= resource_name.titleize %>s
%table{:class => "table table-striped"}
  %thead
    %tr
      %th ID
      <%- unless columns.empty? -%>
      %th
        = t("activerecord.attributes.<%= singular_controller_routing_path %>.<%= columns.first.name %>", :default => t("activerecord.labels.<%= columns.first.name %>", :default => "<%= columns.first.name.capitalize %>"))
      <%- end -%>
      %th Created at
      %th Actions
  %tbody
    - @<%= plural_resource_name %>.each do |<%= resource_name %>|
      %tr
        %td= <%= resource_name %>.id
        <%- unless columns.empty? -%>
        %td= link_to <%= resource_name %>.<%= columns.first.name %>, <%= singular_controller_routing_path %>_path(<%= resource_name %>)
        <%- end -%>
        %td= <%= resource_name %>.created_at
        %td
          = link_to "Show", <%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-mini'
          = link_to "Edit", edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-mini'
          = link_to "Destroy", <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :confirm => "#{t("web-app-theme.confirm", :default => "Are you sure?")}", :class => 'btn btn-mini btn-danger' 

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

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
bootstrapped-rails-2.0.9.rc2 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.9.rc1 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.8.5 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.8.4 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.8.3 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.8.2 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.8.1 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.8 lib/generators/bootstrapped/themed/templates/index.html.haml
twitter-bootstrap-rails-2.0.4 lib/generators/bootstrap/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.9 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.8 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.7 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.6 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.5 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.4 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.3 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.2 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7.1 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.7 lib/generators/bootstrapped/themed/templates/index.html.haml
bootstrapped-rails-2.0.6 lib/generators/bootstrapped/themed/templates/index.html.haml