From d18e2bd59d3003e2ae38116688e350bfc2774ae7 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 21 Nov 2012 06:14:05 +0300 Subject: [PATCH] styled error message --- app/assets/stylesheets/common.scss | 9 +++++---- app/views/shared/_no_ssh.html.haml | 9 ++------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 843b683f..5eedd8ff 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -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 { diff --git a/app/views/shared/_no_ssh.html.haml b/app/views/shared/_no_ssh.html.haml index a11f2bc4..c75a1d93 100644 --- a/app/views/shared/_no_ssh.html.haml +++ b/app/views/shared/_no_ssh.html.haml @@ -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