Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorSteffen van Bergerem <svbergerem@online.de>2016-08-12 12:20:40 +0300
committerSteffen van Bergerem <svbergerem@online.de>2016-08-12 13:58:57 +0300
commit48b0e3d7d14bb91b48a29b1fe14318537e0d1ad2 (patch)
tree6e6a0fadf596125c7fa18fe77661bee807cf8650 /app/views
parent23d8af9e070c3b9d89fcd47764ecf93c506d14a3 (diff)
Add role='alert' to alerts
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admins/stats.html.haml2
-rw-r--r--app/views/admins/user_search.html.haml3
-rw-r--r--app/views/registrations/new.mobile.haml2
-rw-r--r--app/views/sessions/new.mobile.haml2
4 files changed, 5 insertions, 4 deletions
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