Sha256: 0c0b14c1527fc031b279b1d8ea6c629bc4eca0bf94ac2b4af6e7267aa1f7ad66

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

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

Version data entries

1 entries across 1 versions & 1 rubygems

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