Commit 08fded3fac00b2628e167c21541379784e9d2fa0

Authored by Dmitriy Zaporozhets
1 parent 9df6f7bf

Minor improvments to UI

app/assets/stylesheets/common.scss
@@ -602,6 +602,10 @@ li.note { @@ -602,6 +602,10 @@ li.note {
602 margin-bottom: 10px; 602 margin-bottom: 10px;
603 background: #FEE; 603 background: #FEE;
604 padding-left: 20px; 604 padding-left: 20px;
  605 +
  606 + &.centered {
  607 + text-align: center;
  608 + }
605 } 609 }
606 610
607 .oauth_select_holder { 611 .oauth_select_holder {
app/assets/stylesheets/gitlab_bootstrap/common.scss
@@ -34,6 +34,7 @@ @@ -34,6 +34,7 @@
34 /** PILLS & TABS**/ 34 /** PILLS & TABS**/
35 .nav-pills a:hover { background-color: #888; } 35 .nav-pills a:hover { background-color: #888; }
36 .nav-pills .active a { background-color: $style_color; } 36 .nav-pills .active a { background-color: $style_color; }
  37 +.nav-pills > .active > a > i[class^="icon-"] { background: inherit; }
37 .nav-tabs > li > a, .nav-pills > li > a { color: $style_color; } 38 .nav-tabs > li > a, .nav-pills > li > a { color: $style_color; }
38 .nav.nav-tabs { 39 .nav.nav-tabs {
39 li { 40 li {
@@ -77,7 +78,15 @@ img.lil_av { padding-left: 4px; padding-right: 3px; } @@ -77,7 +78,15 @@ img.lil_av { padding-left: 4px; padding-right: 3px; }
77 img.small { width: 80px; } 78 img.small { width: 80px; }
78 79
79 /** HELPERS **/ 80 /** HELPERS **/
80 -.nothing_here_message { text-align: center; padding: 20px; color: #777; } 81 +.nothing_here_message {
  82 + text-align: center;
  83 + padding: 20px;
  84 + color: #666;
  85 + font-weight: normal;
  86 + font-size: 16px;
  87 + line-height: 36px;
  88 +}
  89 +
81 p.slead { color: #456; font-size: 16px; margin-bottom: 12px; font-weight: 200; line-height: 24px; } 90 p.slead { color: #456; font-size: 16px; margin-bottom: 12px; font-weight: 200; line-height: 24px; }
82 91
83 /** FORMS **/ 92 /** FORMS **/
app/views/dashboard/index.html.haml
@@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
2 .projects 2 .projects
3 .activities.span8 3 .activities.span8
4 = render "events/event_last_push", event: @last_push 4 = render "events/event_last_push", event: @last_push
5 - = render 'shared/no_ssh'  
6 5
7 .event_filter 6 .event_filter
8 = event_filter_link EventFilter.push, 'Push events' 7 = event_filter_link EventFilter.push, 'Push events'
app/views/groups/_projects.html.haml
@@ -9,6 +9,8 @@ @@ -9,6 +9,8 @@
9 %i.icon-plus 9 %i.icon-plus
10 New Project 10 New Project
11 %ul.unstyled 11 %ul.unstyled
  12 + - if projects.blank?
  13 + %p.nothing_here_message This groups has no projects yet
12 - projects.each do |project| 14 - projects.each do |project|
13 %li.wll 15 %li.wll
14 = link_to project_path(project), class: dom_class(project) do 16 = link_to project_path(project), class: dom_class(project) do
app/views/groups/show.html.haml
@@ -6,7 +6,6 @@ @@ -6,7 +6,6 @@
6   6  
7 %span.cgray Events and projects are filtered in scope of group 7 %span.cgray Events and projects are filtered in scope of group
8 %hr 8 %hr
9 - = render 'shared/no_ssh'  
10 - if @events.any? 9 - if @events.any?
11 .content_list= render @events 10 .content_list= render @events
12 - else 11 - else
app/views/layouts/project_resource.html.haml
@@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
4 %body{class: "#{app_theme} project"} 4 %body{class: "#{app_theme} project"}
5 = render "layouts/flash" 5 = render "layouts/flash"
6 = render "layouts/head_panel", title: @project.name 6 = render "layouts/head_panel", title: @project.name
  7 + = render 'shared/no_ssh'
7 .container 8 .container
8 %ul.main_menu 9 %ul.main_menu
9 = nav_link(html_options: {class: "home #{project_tab_class}"}) do 10 = nav_link(html_options: {class: "home #{project_tab_class}"}) do
app/views/projects/empty.html.haml
1 -= render 'shared/no_ssh'  
2 = render 'clone_panel' 1 = render 'clone_panel'
3 2
4 %div.git-empty 3 %div.git-empty
app/views/shared/_no_ssh.html.haml
1 - if current_user.require_ssh_key? 1 - if current_user.require_ssh_key?
2 - %p.error_message 2 + %p.error_message.centered
3 You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_key_path} to your profile 3 You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_key_path} to your profile