Commit 0175e665893ca8f8fd660ff55841e95c02fcb987
1 parent
37cf2eb6
Exists in
master
and in
4 other branches
hide no-ssh message if notice or alert present
Showing
3 changed files
with
4 additions
and
8 deletions
Show diff stats
app/assets/stylesheets/common.scss
@@ -49,12 +49,8 @@ table a code { | @@ -49,12 +49,8 @@ table a code { | ||
49 | cursor: pointer; | 49 | cursor: pointer; |
50 | margin: 0; | 50 | margin: 0; |
51 | text-align: center; | 51 | text-align: center; |
52 | - border-radius: 0; | ||
53 | color: #fff; | 52 | color: #fff; |
54 | - | ||
55 | - span { | ||
56 | - font-size: 14px; | ||
57 | - } | 53 | + font-size: 14px; |
58 | 54 | ||
59 | .flash-notice { | 55 | .flash-notice { |
60 | background: #49C; | 56 | background: #49C; |
app/views/layouts/_flash.html.haml
app/views/shared/_no_ssh.html.haml
1 | -- if current_user.require_ssh_key? | 1 | +- if current_user.require_ssh_key? && alert.blank? && notice.blank? |
2 | %p.error-message.centered | 2 | %p.error-message.centered |
3 | You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_profile_key_path} to your profile | 3 | You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_profile_key_path} to your profile |