Commit d7a48443ce3dae559726de4d9f5ce358877bfbcd
1 parent
b563312c
Exists in
spb-stable
and in
3 other branches
alert-error to alert-danger
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
31 changed files
with
33 additions
and
33 deletions
Show diff stats
app/views/admin/broadcast_messages/index.html.haml
app/views/admin/groups/edit.html.haml
app/views/admin/groups/new.html.haml
app/views/admin/hooks/index.html.haml
app/views/admin/users/_form.html.haml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | = form_for [:admin, @user] do |f| |
3 | 3 | -if @user.errors.any? |
4 | 4 | #error_explanation |
5 | - %ul.unstyled.alert.alert-error | |
5 | + %ul.unstyled.alert.alert-danger | |
6 | 6 | - @user.errors.full_messages.each do |msg| |
7 | 7 | %li= msg |
8 | 8 | |
... | ... | @@ -62,7 +62,7 @@ |
62 | 62 | .col-sm-10= f.check_box :admin |
63 | 63 | .col-md-4 |
64 | 64 | - unless @user.new_record? |
65 | - .alert.alert-error | |
65 | + .alert.alert-danger | |
66 | 66 | - if @user.blocked? |
67 | 67 | %p This user is blocked and is not able to login to GitLab |
68 | 68 | = link_to 'Unblock User', unblock_admin_user_path(@user), method: :put, class: "btn btn-small" | ... | ... |
app/views/admin/users/show.html.haml
... | ... | @@ -100,7 +100,7 @@ |
100 | 100 | %li Owned groups will be left |
101 | 101 | = link_to 'Block user', block_admin_user_path(@user), data: { confirm: 'USER WILL BE BLOCKED! Are you sure?' }, method: :put, class: "btn btn-remove" |
102 | 102 | |
103 | - .alert.alert-error | |
103 | + .alert.alert-danger | |
104 | 104 | %h4 |
105 | 105 | Remove user |
106 | 106 | %br | ... | ... |
app/views/groups/edit.html.haml
app/views/groups/new.html.haml
app/views/profiles/keys/_form.html.haml
app/views/profiles/passwords/edit.html.haml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | %br |
11 | 11 | After a successful password update you will be redirected to login page where you should login with your new password |
12 | 12 | -if @user.errors.any? |
13 | - .alert.alert-error | |
13 | + .alert.alert-danger | |
14 | 14 | %ul |
15 | 15 | - @user.errors.full_messages.each do |msg| |
16 | 16 | %li= msg | ... | ... |
app/views/profiles/passwords/new.html.haml
app/views/profiles/show.html.haml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | |
11 | 11 | = form_for @user, url: profile_path, method: :put, html: { multipart: true, class: "edit_user form-horizontal" }, authenticity_token: true do |f| |
12 | 12 | -if @user.errors.any? |
13 | - %div.alert.alert-error | |
13 | + %div.alert.alert-danger | |
14 | 14 | %ul |
15 | 15 | - @user.errors.full_messages.each do |msg| |
16 | 16 | %li= msg | ... | ... |
app/views/projects/_errors.html.haml
app/views/projects/commit/huge_commit.html.haml
app/views/projects/deploy_keys/_form.html.haml
app/views/projects/fork.html.haml
app/views/projects/graphs/show.js.haml
app/views/projects/hooks/index.html.haml
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | |
10 | 10 | = form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-horizontal' } do |f| |
11 | 11 | -if @hook.errors.any? |
12 | - .alert.alert-error | |
12 | + .alert.alert-danger | |
13 | 13 | - @hook.errors.full_messages.each do |msg| |
14 | 14 | %p= msg |
15 | 15 | .form-group | ... | ... |
app/views/projects/issues/_form.html.haml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | %h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.iid}" |
3 | 3 | = form_for [@project, @issue] do |f| |
4 | 4 | -if @issue.errors.any? |
5 | - .alert.alert-error | |
5 | + .alert.alert-danger | |
6 | 6 | - @issue.errors.full_messages.each do |msg| |
7 | 7 | %span= msg |
8 | 8 | %br | ... | ... |
app/views/projects/merge_requests/_form.html.haml
app/views/projects/merge_requests/invalid.html.haml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | = render "projects/merge_requests/show/mr_title" |
3 | 3 | = render "projects/merge_requests/show/mr_box" |
4 | 4 | |
5 | - .alert.alert-error | |
5 | + .alert.alert-danger | |
6 | 6 | %p |
7 | 7 | We cannot render this merge request properly because |
8 | 8 | - if @merge_request.for_fork? && !@merge_request.source_project | ... | ... |
app/views/projects/merge_requests/show/_mr_accept.html.haml
app/views/projects/merge_requests/show/_mr_box.html.haml
app/views/projects/merge_requests/show/_mr_ci.html.haml
... | ... | @@ -8,7 +8,7 @@ |
8 | 8 | |
9 | 9 | |
10 | 10 | .ci_widget.ci-failed{style: "display:none"} |
11 | - .alert.alert-error | |
11 | + .alert.alert-danger | |
12 | 12 | %i.icon-remove |
13 | 13 | %strong CI build failed |
14 | 14 | for #{@merge_request.last_commit_short_sha}. |
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | Checking for CI status for #{@merge_request.last_commit_short_sha} |
30 | 30 | |
31 | 31 | .ci_widget.ci-error{style: "display:none"} |
32 | - .alert.alert-error | |
32 | + .alert.alert-danger | |
33 | 33 | %i.icon-remove |
34 | 34 | %strong Cannot connect to CI server. Please check your setting |
35 | 35 | ... | ... |
app/views/projects/merge_requests/show/_no_accept.html.haml
app/views/projects/milestones/_form.html.haml
app/views/projects/protected_branches/index.html.haml
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | - if can? current_user, :admin_project, @project |
15 | 15 | = form_for [@project, @protected_branch] do |f| |
16 | 16 | -if @protected_branch.errors.any? |
17 | - .alert.alert-error | |
17 | + .alert.alert-danger | |
18 | 18 | %ul |
19 | 19 | - @protected_branch.errors.full_messages.each do |msg| |
20 | 20 | %li= msg | ... | ... |
app/views/projects/services/_form.html.haml
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | |
13 | 13 | = form_for(@service, as: :service, url: project_service_path(@project, @service.to_param), method: :put) do |f| |
14 | 14 | - if @service.errors.any? |
15 | - .alert.alert-error | |
15 | + .alert.alert-danger | |
16 | 16 | %ul |
17 | 17 | - @service.errors.full_messages.each do |msg| |
18 | 18 | %li= msg | ... | ... |
app/views/projects/snippets/_form.html.haml
app/views/projects/team_members/_form.html.haml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | |
4 | 4 | = form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f| |
5 | 5 | -if @user_project_relation.errors.any? |
6 | - .alert.alert-error | |
6 | + .alert.alert-danger | |
7 | 7 | %ul |
8 | 8 | - @user_project_relation.errors.full_messages.each do |msg| |
9 | 9 | %li= msg | ... | ... |
app/views/snippets/_form.html.haml