hide no-ssh message if notice or alert present
This commit is contained in:
parent
37cf2eb691
commit
0175e66589
3 changed files with 4 additions and 8 deletions
|
@ -49,12 +49,8 @@ table a code {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 0;
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
span {
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
|
||||||
|
|
||||||
.flash-notice {
|
.flash-notice {
|
||||||
background: #49C;
|
background: #49C;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
.flash-container
|
.flash-container
|
||||||
- if alert
|
- if alert
|
||||||
.flash-alert
|
.flash-alert
|
||||||
%span= alert
|
= alert
|
||||||
|
|
||||||
- elsif notice
|
- elsif notice
|
||||||
.flash-notice
|
.flash-notice
|
||||||
%span= notice
|
= notice
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- if current_user.require_ssh_key?
|
- if current_user.require_ssh_key? && alert.blank? && notice.blank?
|
||||||
%p.error-message.centered
|
%p.error-message.centered
|
||||||
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
|
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
|
||||||
|
|
Loading…
Reference in a new issue