Sha256: cabfb5e893c20a7ee6eab2a5dbe8179b8f0b30922270fb238a3765bc3d4a0a7c

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

Stored size: 440 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.action_path(:new) %>, 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.3.0 lib/scaffolds/views/index.html.haml
effective_developer-0.2.14 lib/scaffolds/views/index.html.haml
effective_developer-0.2.13 lib/scaffolds/views/index.html.haml
effective_developer-0.2.12 lib/scaffolds/views/index.html.haml
effective_developer-0.2.11 lib/scaffolds/views/index.html.haml