OSDN Git Service

styled error message
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 21 Nov 2012 03:14:05 +0000 (06:14 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 21 Nov 2012 03:14:05 +0000 (06:14 +0300)
app/assets/stylesheets/common.scss
app/views/shared/_no_ssh.html.haml

index 843b683..5eedd8f 100644 (file)
@@ -628,10 +628,11 @@ li.note {
 
 .error_message {
   @extend .cred;
-  border-bottom: 1px solid #D21;
-  padding-bottom:20px;
-  text-align:center;
-  margin-bottom:10px;
+  border-left: 4px solid #E99;
+  padding: 10px;
+  margin-bottom: 10px;
+  background: #FEE;
+  padding-left: 20px;
 }
 
 .oauth_select_holder {
index a11f2bc..c75a1d9 100644 (file)
@@ -1,8 +1,3 @@
 - if current_user.require_ssh_key?
-  %h6.error_message
-    %span
-      You won't be able to pull or push project code until you
-      %strong
-        = link_to new_key_path, class: "vlink" do
-          add an SSH key
-      to your profile
+  %p.error_message
+    You won't be able to pull or push project code until you #{link_to 'add an SSH key', new_key_path} to your profile