From bbdadbf2c2420f84333921a7dab0e03d96d3eccf Mon Sep 17 00:00:00 2001 From: johanneskrtek Date: Thu, 24 Sep 2015 18:00:44 +0200 Subject: [PATCH 1/2] Add missing .alert-dismissible class to flash In Bootstrap the correct styling of the .close button (use a button element) depends on the .alert-dismissible class. --- app/views/layouts/rails_admin/pjax.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/rails_admin/pjax.html.haml b/app/views/layouts/rails_admin/pjax.html.haml index d24ccb5612..8e6371c090 100644 --- a/app/views/layouts/rails_admin/pjax.html.haml +++ b/app/views/layouts/rails_admin/pjax.html.haml @@ -6,8 +6,8 @@ .page-header %h1= @page_name - flash && flash.each do |key, value| - .alert{class: flash_alert_class(key)} - %a.close{href: '#', :'data-dismiss' => "alert"} × + .alert.alert-dismissible{class: flash_alert_class(key)} ++ %button.close{type: 'button', :'data-dismiss' => "alert"} × = value = breadcrumb %ul.nav.nav-tabs From 3be1f2f77f2c390a1dd5bc26f3dc1d255006e3a3 Mon Sep 17 00:00:00 2001 From: johanneskrtek Date: Thu, 24 Sep 2015 19:16:40 +0200 Subject: [PATCH 2/2] Fix typo. --- app/views/layouts/rails_admin/pjax.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/rails_admin/pjax.html.haml b/app/views/layouts/rails_admin/pjax.html.haml index 8e6371c090..818e335502 100644 --- a/app/views/layouts/rails_admin/pjax.html.haml +++ b/app/views/layouts/rails_admin/pjax.html.haml @@ -7,7 +7,7 @@ %h1= @page_name - flash && flash.each do |key, value| .alert.alert-dismissible{class: flash_alert_class(key)} -+ %button.close{type: 'button', :'data-dismiss' => "alert"} × + %button.close{type: 'button', :'data-dismiss' => "alert"} × = value = breadcrumb %ul.nav.nav-tabs