app/views/admin/base/index.html.slim in ab_admin-0.3.5 vs app/views/admin/base/index.html.slim in ab_admin-0.3.6
- old
+ new
@@ -9,5 +9,10 @@
.pagination_info= pagination_info collection
.btn-toolbar.pull-right.pjax_links
.btn-group
- [50, 100, 500, 1000].each do |c|
a.btn.per_page data-val=c href=url_for(params.merge(per_page: c)) class=('active' if c == collection.per_page) = c
+
+- if pjax? && flash.present?
+ - flash.each do |k, v|
+ = javascript_tag %[flash("#{j v}", "#{k}")]
+