Commit b742f47e89674c7aaae78b6e4174339480594d1f
1 parent
e2fb18a3
Exists in
master
and in
4 other branches
remove old alert messages
Showing
35 changed files
with
42 additions
and
36 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
app/assets/stylesheets/gitlab_bootstrap/common.scss
... | ... | @@ -86,9 +86,14 @@ |
86 | 86 | |
87 | 87 | /** ALERT MESSAGES **/ |
88 | 88 | .alert-message { @extend .alert; } |
89 | -.alert-messag.success { @extend .alert-success; } | |
90 | 89 | .alert-message.error { @extend .alert-error; } |
91 | 90 | |
91 | +.alert.alert-disabled { | |
92 | + background: #EEE; | |
93 | + color: #777; | |
94 | + border-color: #DDD; | |
95 | +} | |
96 | + | |
92 | 97 | /** AVATARS **/ |
93 | 98 | img.avatar { float: left; margin-right: 12px; width: 40px; border: 1px solid #ddd; padding: 1px; } |
94 | 99 | img.avatar.s16 { width: 16px; height: 16px; margin-right: 6px; } | ... | ... |
app/views/admin/groups/edit.html.haml
app/views/admin/groups/new.html.haml
app/views/admin/hooks/index.html.haml
app/views/admin/projects/_form.html.haml
app/views/admin/projects/members/_form.html.haml
1 | 1 | = form_for @team_member_relation, as: :team_member, url: admin_project_member_path(@project, @member) do |f| |
2 | 2 | -if @team_member_relation.errors.any? |
3 | - .alert-message.block-message.error | |
3 | + .alert.alert-error | |
4 | 4 | %ul |
5 | 5 | - @team_member_relation.errors.full_messages.each do |msg| |
6 | 6 | %li= msg | ... | ... |
app/views/admin/teams/edit.html.haml
app/views/admin/teams/members/_form.html.haml
app/views/admin/teams/new.html.haml
app/views/admin/teams/projects/_form.html.haml
app/views/commit/huge_commit.html.haml
app/views/commits/_diffs.html.haml
app/views/deploy_keys/_form.html.haml
app/views/groups/new.html.haml
app/views/hooks/index.html.haml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | |
11 | 11 | = form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-inline' } do |f| |
12 | 12 | -if @hook.errors.any? |
13 | - .alert-message.block-message.error | |
13 | + .alert.alert-error | |
14 | 14 | - @hook.errors.full_messages.each do |msg| |
15 | 15 | %p= msg |
16 | 16 | .clearfix | ... | ... |
app/views/issues/_form.html.haml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | %h3.page_title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}" |
3 | 3 | = form_for [@project, @issue] do |f| |
4 | 4 | -if @issue.errors.any? |
5 | - .alert-message.block-message.error | |
5 | + .alert.alert-error | |
6 | 6 | - @issue.errors.full_messages.each do |msg| |
7 | 7 | %span= msg |
8 | 8 | %br | ... | ... |
app/views/keys/_form.html.haml
app/views/merge_requests/_form.html.haml
1 | 1 | = form_for [@project, @merge_request], html: { class: "#{controller.action_name}-merge-request form-horizontal" } do |f| |
2 | 2 | -if @merge_request.errors.any? |
3 | - .alert-message.block-message.error | |
3 | + .alert.alert-error | |
4 | 4 | %ul |
5 | 5 | - @merge_request.errors.full_messages.each do |msg| |
6 | 6 | %li= msg | ... | ... |
app/views/merge_requests/show/_mr_accept.html.haml
1 | 1 | - unless can?(current_user, :accept_mr, @project) |
2 | - .alert-message | |
2 | + .alert | |
3 | 3 | %strong Only masters can accept MR |
4 | 4 | |
5 | 5 | |
... | ... | @@ -29,14 +29,14 @@ |
29 | 29 | %strong This repository does not have satellite. Ask administrator to fix this issue |
30 | 30 | |
31 | 31 | .automerge_widget.cannot_be_merged{style: "display:none"} |
32 | - .alert.alert-info | |
32 | + .alert.alert-disabled | |
33 | 33 | %span |
34 | 34 | = link_to "Show how to merge", "#", class: "how_to_merge_link btn btn-small padded", title: "How To Merge" |
35 | 35 | |
36 | 36 | %strong This request can't be merged with GitLab. You should do it manually |
37 | 37 | |
38 | 38 | .automerge_widget.unchecked |
39 | - .alert-message | |
39 | + .alert | |
40 | 40 | %strong |
41 | 41 | %i.icon-refresh |
42 | 42 | Checking for ability to automatically merge… | ... | ... |
app/views/merge_requests/show/_mr_ci.html.haml
app/views/merge_requests/show/_mr_title.html.haml
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | %li= link_to "Email Patches", project_merge_request_path(@project, @merge_request, format: :patch) |
18 | 18 | %li= link_to "Plain Diff", project_merge_request_path(@project, @merge_request, format: :diff) |
19 | 19 | |
20 | - = link_to 'Close', project_merge_request_path(@project, @merge_request, merge_request: {closed: true }, status_only: true), method: :put, class: "btn grouped danger", title: "Close merge request" | |
20 | + = link_to 'Close', project_merge_request_path(@project, @merge_request, merge_request: {closed: true }, status_only: true), method: :put, class: "btn grouped btn-close", title: "Close merge request" | |
21 | 21 | |
22 | 22 | = link_to edit_project_merge_request_path(@project, @merge_request), class: "btn grouped" do |
23 | 23 | %i.icon-edit | ... | ... |
app/views/milestones/_form.html.haml
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | |
8 | 8 | = form_for [@project, @milestone], html: {class: "new_milestone form-horizontal"} do |f| |
9 | 9 | -if @milestone.errors.any? |
10 | - .alert-message.block-message.error | |
10 | + .alert.alert-error | |
11 | 11 | %ul |
12 | 12 | - @milestone.errors.full_messages.each do |msg| |
13 | 13 | %li= msg | ... | ... |
app/views/profiles/account.html.haml
... | ... | @@ -35,7 +35,7 @@ |
35 | 35 | .padded |
36 | 36 | %p.slead After successful password update you will be redirected to login page where you should login with new password |
37 | 37 | -if @user.errors.any? |
38 | - .alert-message.block-message.error | |
38 | + .alert.alert-error | |
39 | 39 | %ul |
40 | 40 | - @user.errors.full_messages.each do |msg| |
41 | 41 | %li= msg | ... | ... |
app/views/profiles/show.html.haml
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | |
16 | 16 | = form_for @user, url: profile_path, method: :put, html: { class: "edit_user form-horizontal" } do |f| |
17 | 17 | -if @user.errors.any? |
18 | - %div.alert-message.block-message.error | |
18 | + %div.alert.alert-error | |
19 | 19 | %ul |
20 | 20 | - @user.errors.full_messages.each do |msg| |
21 | 21 | %li= msg | ... | ... |
app/views/projects/_form.html.haml
app/views/projects/_new_form.html.haml
app/views/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-message.block-message.error | |
17 | + .alert.alert-error | |
18 | 18 | %ul |
19 | 19 | - @protected_branch.errors.full_messages.each do |msg| |
20 | 20 | %li= msg | ... | ... |
app/views/services/_gitlab_ci.html.haml
... | ... | @@ -16,7 +16,7 @@ |
16 | 16 | %hr |
17 | 17 | = form_for(@service, :as => :service, :url => project_service_path(@project, :gitlab_ci), :method => :put) do |f| |
18 | 18 | - if @service.errors.any? |
19 | - .alert-message.block-message.error | |
19 | + .alert.alert-error | |
20 | 20 | %ul |
21 | 21 | - @service.errors.full_messages.each do |msg| |
22 | 22 | %li= msg | ... | ... |
app/views/snippets/_form.html.haml
app/views/team_members/_form.html.haml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | %hr |
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-message.block-message.error | |
6 | + .alert.alert-error | |
7 | 7 | %ul |
8 | 8 | - @user_project_relation.errors.full_messages.each do |msg| |
9 | 9 | %li= msg | ... | ... |
app/views/teams/edit.html.haml
app/views/teams/members/_form.html.haml
app/views/teams/new.html.haml
app/views/teams/projects/_form.html.haml