app/views/admin/orders/index.html.haml in effective_orders-1.8.1 vs app/views/admin/orders/index.html.haml in effective_orders-2.0.0

- old
+ new

@@ -1,11 +1,15 @@ -%h2.effective-orders-page-title Orders +%h2.effective-orders-page-title= (@page_title || 'Orders') +%p.text-right.effective-orders-page-action= link_to 'New Order', effective_orders.new_admin_order_path, :class => 'btn btn-primary' + - if @datatable.nil? - %p - Please install - = link_to 'effective_datatables', 'https://github.com/code-and-effect/effective_datatables' - to see this page. + %p Please install #{link_to 'effective_datatables', 'https://github.com/code-and-effect/effective_datatables'} to see this page. - elsif @datatable.present? = render_datatable @datatable - else %p There are no orders present + +- if @datatable.present? + %p.text-right= link_to 'New Order', effective_orders.new_admin_order_path, :class => 'btn btn-primary' + +