Commit d7a48443 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

alert-error to alert-danger

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b563312c
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
= form_for [:admin, @broadcast_message] do |f| = form_for [:admin, @broadcast_message] do |f|
-if @broadcast_message.errors.any? -if @broadcast_message.errors.any?
.alert.alert-error .alert.alert-danger
- @broadcast_message.errors.full_messages.each do |msg| - @broadcast_message.errors.full_messages.each do |msg|
%p= msg %p= msg
.form-group .form-group
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
%hr %hr
= form_for [:admin, @group] do |f| = form_for [:admin, @group] do |f|
- if @group.errors.any? - if @group.errors.any?
.alert.alert-error .alert.alert-danger
%span= @group.errors.full_messages.first %span= @group.errors.full_messages.first
.form-group.group_name_holder .form-group.group_name_holder
= f.label :name do = f.label :name do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
%hr %hr
= form_for [:admin, @group] do |f| = form_for [:admin, @group] do |f|
- if @group.errors.any? - if @group.errors.any?
.alert.alert-error .alert.alert-danger
%span= @group.errors.full_messages.first %span= @group.errors.full_messages.first
.form-group .form-group
= f.label :name do = f.label :name do
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
= form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f| = form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f|
-if @hook.errors.any? -if @hook.errors.any?
.alert.alert-error .alert.alert-danger
- @hook.errors.full_messages.each do |msg| - @hook.errors.full_messages.each do |msg|
%p= msg %p= msg
.form-group .form-group
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
= form_for [:admin, @user] do |f| = form_for [:admin, @user] do |f|
-if @user.errors.any? -if @user.errors.any?
#error_explanation #error_explanation
%ul.unstyled.alert.alert-error %ul.unstyled.alert.alert-danger
- @user.errors.full_messages.each do |msg| - @user.errors.full_messages.each do |msg|
%li= msg %li= msg
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
.col-sm-10= f.check_box :admin .col-sm-10= f.check_box :admin
.col-md-4 .col-md-4
- unless @user.new_record? - unless @user.new_record?
.alert.alert-error .alert.alert-danger
- if @user.blocked? - if @user.blocked?
%p This user is blocked and is not able to login to GitLab %p This user is blocked and is not able to login to GitLab
= link_to 'Unblock User', unblock_admin_user_path(@user), method: :put, class: "btn btn-small" = link_to 'Unblock User', unblock_admin_user_path(@user), method: :put, class: "btn btn-small"
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
%li Owned groups will be left %li Owned groups will be left
= link_to 'Block user', block_admin_user_path(@user), data: { confirm: 'USER WILL BE BLOCKED! Are you sure?' }, method: :put, class: "btn btn-remove" = link_to 'Block user', block_admin_user_path(@user), data: { confirm: 'USER WILL BE BLOCKED! Are you sure?' }, method: :put, class: "btn btn-remove"
.alert.alert-error .alert.alert-danger
%h4 %h4
Remove user Remove user
%br %br
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
%div.form-holder %div.form-holder
= form_for @group do |f| = form_for @group do |f|
- if @group.errors.any? - if @group.errors.any?
.alert.alert-error .alert.alert-danger
%span= @group.errors.full_messages.first %span= @group.errors.full_messages.first
.form-group .form-group
= f.label :name do = f.label :name do
......
= form_for @group do |f| = form_for @group do |f|
- if @group.errors.any? - if @group.errors.any?
.alert.alert-error .alert.alert-danger
%span= @group.errors.full_messages.first %span= @group.errors.full_messages.first
.form-group .form-group
= f.label :name do = f.label :name do
......
%div %div
= form_for [:profile, @key], html: { class: 'form-horizontal' } do |f| = form_for [:profile, @key], html: { class: 'form-horizontal' } do |f|
- if @key.errors.any? - if @key.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @key.errors.full_messages.each do |msg| - @key.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
%br %br
After a successful password update you will be redirected to login page where you should login with your new password After a successful password update you will be redirected to login page where you should login with your new password
-if @user.errors.any? -if @user.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @user.errors.full_messages.each do |msg| - @user.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
%br %br
After successful password update you will be redirected to login screen After successful password update you will be redirected to login screen
-if @user.errors.any? -if @user.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @user.errors.full_messages.each do |msg| - @user.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
= form_for @user, url: profile_path, method: :put, html: { multipart: true, class: "edit_user form-horizontal" }, authenticity_token: true do |f| = form_for @user, url: profile_path, method: :put, html: { multipart: true, class: "edit_user form-horizontal" }, authenticity_token: true do |f|
-if @user.errors.any? -if @user.errors.any?
%div.alert.alert-error %div.alert.alert-danger
%ul %ul
- @user.errors.full_messages.each do |msg| - @user.errors.full_messages.each do |msg|
%li= msg %li= msg
......
- if @project.errors.any? - if @project.errors.any?
.alert.alert-error .alert.alert-danger
%button{ type: "button", class: "close", "data-dismiss" => "alert"} &times; %button{ type: "button", class: "close", "data-dismiss" => "alert"} &times;
= @project.errors.full_messages.first = @project.errors.full_messages.first
= render "projects/commit/commit_box" = render "projects/commit/commit_box"
.alert.alert-error .alert.alert-danger
%h4 Commit diffs are too big to be displayed %h4 Commit diffs are too big to be displayed
%div %div
= form_for [@project, @key], url: project_deploy_keys_path do |f| = form_for [@project, @key], url: project_deploy_keys_path do |f|
-if @key.errors.any? -if @key.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @key.errors.full_messages.each do |msg| - @key.errors.full_messages.each do |msg|
%li= msg %li= msg
......
.alert.alert-error.alert-block .alert.alert-danger.alert-block
%h4 %h4
%i.icon-code-fork %i.icon-code-fork
Fork Error! Fork Error!
......
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
}) })
- else - else
:plain :plain
$('.stat-graph').replaceWith('<div class="alert alert-error">Failed to load graph</div>') $('.stat-graph').replaceWith('<div class="alert alert-danger">Failed to load graph</div>')
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
= form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-horizontal' } do |f| = form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-horizontal' } do |f|
-if @hook.errors.any? -if @hook.errors.any?
.alert.alert-error .alert.alert-danger
- @hook.errors.full_messages.each do |msg| - @hook.errors.full_messages.each do |msg|
%p= msg %p= msg
.form-group .form-group
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
%h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.iid}" %h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.iid}"
= form_for [@project, @issue] do |f| = form_for [@project, @issue] do |f|
-if @issue.errors.any? -if @issue.errors.any?
.alert.alert-error .alert.alert-danger
- @issue.errors.full_messages.each do |msg| - @issue.errors.full_messages.each do |msg|
%span= msg %span= msg
%br %br
......
= form_for [@project, @merge_request], html: { class: "#{controller.action_name}-merge-request form-horizontal" } do |f| = form_for [@project, @merge_request], html: { class: "#{controller.action_name}-merge-request form-horizontal" } do |f|
-if @merge_request.errors.any? -if @merge_request.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @merge_request.errors.full_messages.each do |msg| - @merge_request.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
= render "projects/merge_requests/show/mr_title" = render "projects/merge_requests/show/mr_title"
= render "projects/merge_requests/show/mr_box" = render "projects/merge_requests/show/mr_box"
.alert.alert-error .alert.alert-danger
%p %p
We cannot render this merge request properly because We cannot render this merge request properly because
- if @merge_request.for_fork? && !@merge_request.source_project - if @merge_request.for_fork? && !@merge_request.source_project
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
.automerge_widget.no_satellite{style: "display:none"} .automerge_widget.no_satellite{style: "display:none"}
.alert.alert-error .alert.alert-danger
%span %span
%strong This repository does not have satellite. Ask an administrator to fix this issue %strong This repository does not have satellite. Ask an administrator to fix this issue
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
= markdown @merge_request.description = markdown @merge_request.description
- if @merge_request.closed? - if @merge_request.closed?
.description.alert-error .description.alert-danger
%span %span
%i.icon-remove %i.icon-remove
Closed by #{link_to_member(@project, @merge_request.closed_event.author)} Closed by #{link_to_member(@project, @merge_request.closed_event.author)}
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
.ci_widget.ci-failed{style: "display:none"} .ci_widget.ci-failed{style: "display:none"}
.alert.alert-error .alert.alert-danger
%i.icon-remove %i.icon-remove
%strong CI build failed %strong CI build failed
for #{@merge_request.last_commit_short_sha}. for #{@merge_request.last_commit_short_sha}.
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
Checking for CI status for #{@merge_request.last_commit_short_sha} Checking for CI status for #{@merge_request.last_commit_short_sha}
.ci_widget.ci-error{style: "display:none"} .ci_widget.ci-error{style: "display:none"}
.alert.alert-error .alert.alert-danger
%i.icon-remove %i.icon-remove
%strong Cannot connect to CI server. Please check your setting %strong Cannot connect to CI server. Please check your setting
.alert.alert-error .alert.alert-danger
%p %p
This merge request can not be accepted because branch This merge request can not be accepted because branch
- unless @merge_request.source_branch_exists? - unless @merge_request.source_branch_exists?
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
= form_for [@project, @milestone], html: {class: "new_milestone form-horizontal"} do |f| = form_for [@project, @milestone], html: {class: "new_milestone form-horizontal"} do |f|
-if @milestone.errors.any? -if @milestone.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @milestone.errors.full_messages.each do |msg| - @milestone.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
- if can? current_user, :admin_project, @project - if can? current_user, :admin_project, @project
= form_for [@project, @protected_branch] do |f| = form_for [@project, @protected_branch] do |f|
-if @protected_branch.errors.any? -if @protected_branch.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @protected_branch.errors.full_messages.each do |msg| - @protected_branch.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
= form_for(@service, as: :service, url: project_service_path(@project, @service.to_param), method: :put) do |f| = form_for(@service, as: :service, url: project_service_path(@project, @service.to_param), method: :put) do |f|
- if @service.errors.any? - if @service.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @service.errors.full_messages.each do |msg| - @service.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.snippet-form-holder .snippet-form-holder
= form_for [@project, @snippet], as: :project_snippet, url: url do |f| = form_for [@project, @snippet], as: :project_snippet, url: url do |f|
-if @snippet.errors.any? -if @snippet.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @snippet.errors.full_messages.each do |msg| - @snippet.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f| = form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f|
-if @user_project_relation.errors.any? -if @user_project_relation.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @user_project_relation.errors.full_messages.each do |msg| - @user_project_relation.errors.full_messages.each do |msg|
%li= msg %li= msg
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.snippet-form-holder .snippet-form-holder
= form_for @snippet, as: :personal_snippet, url: url do |f| = form_for @snippet, as: :personal_snippet, url: url do |f|
-if @snippet.errors.any? -if @snippet.errors.any?
.alert.alert-error .alert.alert-danger
%ul %ul
- @snippet.errors.full_messages.each do |msg| - @snippet.errors.full_messages.each do |msg|
%li= msg %li= msg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment