Sha256: 88aaf1a4577ef76693a1aa4f0d0eee001c0197a055360fff04d07ef89bfcb441

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

%h1= @page_title

<% if actions.include?('new') -%>
- if can?(:new, <%= resource.class_name %>)
  %p.text-right= link_to 'New <%= resource.human_name %>', <%= resource.new_path %>, class: 'btn btn-primary'

<% end -%>
<% if defined?(EffectiveDatatables) -%>
- if @datatable.present?
  = render_datatable(@datatable)
- else
  %p There are no <%= resource.plural_name %>.
<% else %>
  = render @<%= resource.plural_name %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_developer-0.2.10 lib/scaffolds/views/index.html.haml
effective_developer-0.2.9 lib/scaffolds/views/index.html.haml
effective_developer-0.2.8 lib/scaffolds/views/index.html.haml
effective_developer-0.2.7 lib/scaffolds/views/index.html.haml
effective_developer-0.2.6 lib/scaffolds/views/index.html.haml