<%% @title = "Listing <%= plural_table_name %>" %> <%% content_for :description do %>

Edit this template in app/views/<%= controller_name %>/index.html.erb.

<%% end %> <%% content_for :actions do %> <%%= link_to new_<%= singular_table_name %>_path, <%= KisoThemes.key_value :class, "'btn btn-primary btn-large pull-right'" %> do %> <%%= fa_icon_tag "plus" %> Add <%= human_name %> <%% end %> <%% end %>
<% attributes.each do |attribute| -%> <% end -%> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <% attributes.each do |attribute| -%> <% end -%> <%% end %> <%% if @<%= plural_table_name %>.length == 0 %> <%% end %>
<%= attribute.human_name %>
<%%= <%= singular_table_name %>.<%= attribute.name %> %>
<%%= link_to theme_icon_tag("eye"), <%= singular_table_name %>, <%= KisoThemes.key_value "'data-toggle'", "'tooltip'" %>, <%= KisoThemes.key_value :title, "'Show'" %>, class: "btn btn-link" %> <%%= link_to theme_icon_tag("pencil-alt"), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), <%= KisoThemes.key_value "'data-toggle'", "'tooltip'" %>, <%= KisoThemes.key_value :title, "'Edit'" %>, class: "btn btn-link" %> <%%= link_to theme_icon_tag("trash"), <%= singular_table_name %>, <%= KisoThemes.key_value "'data-toggle'", "'tooltip'" %>, <%= KisoThemes.key_value :title, "'Delete'" %>, <%= Gem::Version.new(Rails.version) >= Gem::Version.new("3.2.6") ? KisoThemes.key_value(:data, '{ ' + KisoThemes.key_value(:confirm, "'Are you sure?'") + ' }') : KisoThemes.key_value(:confirm, "'Are you sure?'") %>, <%= KisoThemes.key_value :method, ":delete" %>, class: 'btn btn-link' %>
No <%= plural_table_name %>.
<% if defined?(WillPaginate) -%> <%%# Remove the trailing if condition if you're using pagination. %> <%%= will_paginate @<%= plural_table_name %> if @<%= plural_table_name %>.respond_to?(:total_pages) %> <% end -%> <% if defined?(Kaminari) -%> <%%# Remove the trailing if condition if you're using pagination. %> <%%= paginate @<%= plural_table_name %> if @<%= plural_table_name %>.respond_to?(:current_page) %> <% end -%>