Commit 0175e665893ca8f8fd660ff55841e95c02fcb987

Authored by Dmitriy Zaporozhets
1 parent 37cf2eb6

hide no-ssh message if notice or alert present

app/assets/stylesheets/common.scss
... ... @@ -49,12 +49,8 @@ table a code {
49 49 cursor: pointer;
50 50 margin: 0;
51 51 text-align: center;
52   - border-radius: 0;
53 52 color: #fff;
54   -
55   - span {
56   - font-size: 14px;
57   - }
  53 + font-size: 14px;
58 54  
59 55 .flash-notice {
60 56 background: #49C;
... ...
app/views/layouts/_flash.html.haml
1 1 .flash-container
2 2 - if alert
3 3 .flash-alert
4   - %span= alert
  4 + = alert
5 5  
6 6 - elsif notice
7 7 .flash-notice
8   - %span= notice
  8 + = notice
... ...
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 2 %p.error-message.centered
3 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
... ...