Sha256: 68568bf132cc093e60f327bc434e9c0a78c985757c3c7cd2d43a43643baaa42f

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 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_scopes(@datatable)
  = render_datatable(@datatable)
- else
  %p There are no <%= resource.plural_name %>.
<% else %>
  = render @<%= resource.plural_name %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_developer-0.2.4 lib/scaffolds/views/index.html.haml
effective_developer-0.2.3 lib/scaffolds/views/index.html.haml