summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-23 20:02:42 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-23 20:02:42 -0800
commit889e86bc0e20e6304e6154f8402dc7ba9e8ad12e (patch)
treefaf0a17d959fa52f411af3a8058de0064c15bcd1
parent11623ae1f296b7b838ac462db444db4369c2cdbf (diff)
downloadgitlab-ci-889e86bc0e20e6304e6154f8402dc7ba9e8ad12e.tar.gz
Make login more user-friendly
-rw-r--r--app/assets/stylesheets/sections/navbar.scss8
-rw-r--r--app/views/layouts/_nav.html.haml2
-rw-r--r--app/views/projects/_public.html.haml5
3 files changed, 14 insertions, 1 deletions
diff --git a/app/assets/stylesheets/sections/navbar.scss b/app/assets/stylesheets/sections/navbar.scss
index f589f27..dca9efa 100644
--- a/app/assets/stylesheets/sections/navbar.scss
+++ b/app/assets/stylesheets/sections/navbar.scss
@@ -36,6 +36,14 @@
margin-left: 35px;
}
}
+
+ .btn-login {
+ padding: 7px 22px;
+ margin-top: 7px;
+ &:hover, &:active, &:focus {
+ background: #018865 !important;
+ }
+ }
}
.turbolink-spinner {
diff --git a/app/views/layouts/_nav.html.haml b/app/views/layouts/_nav.html.haml
index 532d65b..9ada555 100644
--- a/app/views/layouts/_nav.html.haml
+++ b/app/views/layouts/_nav.html.haml
@@ -35,4 +35,4 @@
Logout
- else
%li
- = link_to 'Login', new_user_sessions_path(return_to: request.fullpath)
+ = link_to 'Login', new_user_sessions_path(return_to: request.fullpath), class: 'btn btn-new btn-login'
diff --git a/app/views/projects/_public.html.haml b/app/views/projects/_public.html.haml
index 6dc3181..e91f3e2 100644
--- a/app/views/projects/_public.html.haml
+++ b/app/views/projects/_public.html.haml
@@ -2,6 +2,11 @@
%h3.project-title
Public projects
+.bs-callout
+ = link_to new_user_sessions_path(return_to: request.fullpath) do
+ %strong Login
+ to see your private projects
+
- if @projects.present?
.projects
%table.table