OSDN Git Service

hide no-ssh message if notice or alert present
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sat, 10 Aug 2013 18:20:03 +0000 (21:20 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sat, 10 Aug 2013 18:20:03 +0000 (21:20 +0300)
app/assets/stylesheets/common.scss
app/views/layouts/_flash.html.haml
app/views/shared/_no_ssh.html.haml

index abd38a0..39e6728 100644 (file)
@@ -49,12 +49,8 @@ table a code {
   cursor: pointer;
   margin: 0;
   text-align: center;
-  border-radius: 0;
   color: #fff;
-
-  span {
-    font-size: 14px;
-  }
+  font-size: 14px;
 
   .flash-notice {
     background: #49C;
index 2585030..cc8ea06 100644 (file)
@@ -1,8 +1,8 @@
 .flash-container
   - if alert
     .flash-alert
-      %span= alert
+      = alert
 
   - elsif notice
     .flash-notice
-      %span= notice
+      = notice
index 82bf00a..6d36380 100644 (file)
@@ -1,3 +1,3 @@
-- if current_user.require_ssh_key?
+- if current_user.require_ssh_key? && alert.blank? && notice.blank?
   %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