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 @@
= form_for [:admin, @broadcast_message] do |f|
-if @broadcast_message.errors.any?
.alert.alert-error
.alert.alert-danger
- @broadcast_message.errors.full_messages.each do |msg|
%p= msg
.form-group
......
......@@ -2,7 +2,7 @@
%hr
= form_for [:admin, @group] do |f|
- if @group.errors.any?
.alert.alert-error
.alert.alert-danger
%span= @group.errors.full_messages.first
.form-group.group_name_holder
= f.label :name do
......
......@@ -2,7 +2,7 @@
%hr
= form_for [:admin, @group] do |f|
- if @group.errors.any?
.alert.alert-error
.alert.alert-danger
%span= @group.errors.full_messages.first
.form-group
= f.label :name do
......
......@@ -10,7 +10,7 @@
= form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f|
-if @hook.errors.any?
.alert.alert-error
.alert.alert-danger
- @hook.errors.full_messages.each do |msg|
%p= msg
.form-group
......
......@@ -2,7 +2,7 @@
= form_for [:admin, @user] do |f|
-if @user.errors.any?
#error_explanation
%ul.unstyled.alert.alert-error
%ul.unstyled.alert.alert-danger
- @user.errors.full_messages.each do |msg|
%li= msg
......@@ -62,7 +62,7 @@
.col-sm-10= f.check_box :admin
.col-md-4
- unless @user.new_record?
.alert.alert-error
.alert.alert-danger
- if @user.blocked?
%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"
......
......@@ -100,7 +100,7 @@
%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"
.alert.alert-error
.alert.alert-danger
%h4
Remove user
%br
......
......@@ -22,7 +22,7 @@
%div.form-holder
= form_for @group do |f|
- if @group.errors.any?
.alert.alert-error
.alert.alert-danger
%span= @group.errors.full_messages.first
.form-group
= f.label :name do
......
= form_for @group do |f|
- if @group.errors.any?
.alert.alert-error
.alert.alert-danger
%span= @group.errors.full_messages.first
.form-group
= f.label :name do
......
%div
= form_for [:profile, @key], html: { class: 'form-horizontal' } do |f|
- if @key.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @key.errors.full_messages.each do |msg|
%li= msg
......
......@@ -10,7 +10,7 @@
%br
After a successful password update you will be redirected to login page where you should login with your new password
-if @user.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
......
......@@ -5,7 +5,7 @@
%br
After successful password update you will be redirected to login screen
-if @user.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
......
......@@ -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|
-if @user.errors.any?
%div.alert.alert-error
%div.alert.alert-danger
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
......
- if @project.errors.any?
.alert.alert-error
.alert.alert-danger
%button{ type: "button", class: "close", "data-dismiss" => "alert"} &times;
= @project.errors.full_messages.first
= render "projects/commit/commit_box"
.alert.alert-error
.alert.alert-danger
%h4 Commit diffs are too big to be displayed
%div
= form_for [@project, @key], url: project_deploy_keys_path do |f|
-if @key.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @key.errors.full_messages.each do |msg|
%li= msg
......
.alert.alert-error.alert-block
.alert.alert-danger.alert-block
%h4
%i.icon-code-fork
Fork Error!
......
......@@ -16,4 +16,4 @@
})
- else
: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 @@
= form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-horizontal' } do |f|
-if @hook.errors.any?
.alert.alert-error
.alert.alert-danger
- @hook.errors.full_messages.each do |msg|
%p= msg
.form-group
......
......@@ -2,7 +2,7 @@
%h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.iid}"
= form_for [@project, @issue] do |f|
-if @issue.errors.any?
.alert.alert-error
.alert.alert-danger
- @issue.errors.full_messages.each do |msg|
%span= msg
%br
......
= form_for [@project, @merge_request], html: { class: "#{controller.action_name}-merge-request form-horizontal" } do |f|
-if @merge_request.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @merge_request.errors.full_messages.each do |msg|
%li= msg
......
......@@ -2,7 +2,7 @@
= render "projects/merge_requests/show/mr_title"
= render "projects/merge_requests/show/mr_box"
.alert.alert-error
.alert.alert-danger
%p
We cannot render this merge request properly because
- if @merge_request.for_fork? && !@merge_request.source_project
......
......@@ -25,7 +25,7 @@
.automerge_widget.no_satellite{style: "display:none"}
.alert.alert-error
.alert.alert-danger
%span
%strong This repository does not have satellite. Ask an administrator to fix this issue
......
......@@ -21,7 +21,7 @@
= markdown @merge_request.description
- if @merge_request.closed?
.description.alert-error
.description.alert-danger
%span
%i.icon-remove
Closed by #{link_to_member(@project, @merge_request.closed_event.author)}
......
......@@ -8,7 +8,7 @@
.ci_widget.ci-failed{style: "display:none"}
.alert.alert-error
.alert.alert-danger
%i.icon-remove
%strong CI build failed
for #{@merge_request.last_commit_short_sha}.
......@@ -29,7 +29,7 @@
Checking for CI status for #{@merge_request.last_commit_short_sha}
.ci_widget.ci-error{style: "display:none"}
.alert.alert-error
.alert.alert-danger
%i.icon-remove
%strong Cannot connect to CI server. Please check your setting
.alert.alert-error
.alert.alert-danger
%p
This merge request can not be accepted because branch
- unless @merge_request.source_branch_exists?
......
......@@ -7,7 +7,7 @@
= form_for [@project, @milestone], html: {class: "new_milestone form-horizontal"} do |f|
-if @milestone.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @milestone.errors.full_messages.each do |msg|
%li= msg
......
......@@ -14,7 +14,7 @@
- if can? current_user, :admin_project, @project
= form_for [@project, @protected_branch] do |f|
-if @protected_branch.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @protected_branch.errors.full_messages.each do |msg|
%li= msg
......
......@@ -12,7 +12,7 @@
= form_for(@service, as: :service, url: project_service_path(@project, @service.to_param), method: :put) do |f|
- if @service.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @service.errors.full_messages.each do |msg|
%li= msg
......
......@@ -4,7 +4,7 @@
.snippet-form-holder
= form_for [@project, @snippet], as: :project_snippet, url: url do |f|
-if @snippet.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @snippet.errors.full_messages.each do |msg|
%li= msg
......
......@@ -3,7 +3,7 @@
= form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f|
-if @user_project_relation.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @user_project_relation.errors.full_messages.each do |msg|
%li= msg
......
......@@ -4,7 +4,7 @@
.snippet-form-holder
= form_for @snippet, as: :personal_snippet, url: url do |f|
-if @snippet.errors.any?
.alert.alert-error
.alert.alert-danger
%ul
- @snippet.errors.full_messages.each do |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