diff --git a/app/assets/javascripts/app/pages/admin_pods.js b/app/assets/javascripts/app/pages/admin_pods.js
index a4880354e..27fb1979e 100644
--- a/app/assets/javascripts/app/pages/admin_pods.js
+++ b/app/assets/javascripts/app/pages/admin_pods.js
@@ -30,17 +30,17 @@ app.pages.AdminPods = app.views.Base.extend({
_showMessages: function() {
var msgs = document.createDocumentFragment();
if( gon.uncheckedCount && gon.uncheckedCount > 0 ) {
- var unchecked = $("
-
diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb
index 3dab764f7..548ef2082 100644
--- a/app/helpers/layout_helper.rb
+++ b/app/helpers/layout_helper.rb
@@ -69,7 +69,7 @@ module LayoutHelper
flash.map do |name, msg|
klass = flash_class name
content_tag(:div, msg, class: "flash-body expose") do
- content_tag(:div, msg, class: "flash-message message alert alert-#{klass}")
+ content_tag(:div, msg, class: "flash-message message alert alert-#{klass}", role: "alert")
end
end.join(' ').html_safe
end
diff --git a/app/views/admins/stats.html.haml b/app/views/admins/stats.html.haml
index c3ce51c3a..8f9082ef6 100644
--- a/app/views/admins/stats.html.haml
+++ b/app/views/admins/stats.html.haml
@@ -44,7 +44,7 @@
.row
.col-md-12
- %p.alert.alert-info.text-center
+ %p.alert.alert-info.text-center{role: "alert"}
!= t('.current_segment', :post_yest => @posts[:yesterday]/@user_count.to_f, :post_day => @posts[:day_before]/@user_count.to_f)
.row
diff --git a/app/views/admins/user_search.html.haml b/app/views/admins/user_search.html.haml
index 52638f4d1..4be69152f 100644
--- a/app/views/admins/user_search.html.haml
+++ b/app/views/admins/user_search.html.haml
@@ -50,7 +50,8 @@
.row
.col-md-12
- .alert.alert-info.text-center= t('.users', :count => @users.count)
+ .alert.alert-info.text-center{role: "alert"}
+ = t(".users", count: @users.count)
.row
.users.col-md-12
diff --git a/app/views/registrations/new.mobile.haml b/app/views/registrations/new.mobile.haml
index 3b6eee1ee..efec569c9 100644
--- a/app/views/registrations/new.mobile.haml
+++ b/app/views/registrations/new.mobile.haml
@@ -5,7 +5,7 @@
.stream#main_stream
- flash.each do |name, msg|
.expose#flash-container
- .flash-message{class: "message alert alert-#{flash_class name}"}
+ .flash-message{class: "message alert alert-#{flash_class name}", role: "alert"}
= msg
#login_form
diff --git a/app/views/sessions/new.mobile.haml b/app/views/sessions/new.mobile.haml
index 4c72aaaa5..a4b7d803c 100644
--- a/app/views/sessions/new.mobile.haml
+++ b/app/views/sessions/new.mobile.haml
@@ -5,7 +5,7 @@
.stream#main_stream
- flash.each do |name, msg|
.expose#flash-container
- .flash-message{class: "message alert alert-#{flash_class name}"}
+ .flash-message{class: "message alert alert-#{flash_class name}", role: "alert"}
= msg
#login_form