Unverified Commit d7a48443 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

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
......
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