Commit bf625b7c92d5f07516339f53fdf391185df8547c
1 parent
6d8d32c2
Exists in
master
and in
4 other branches
polishing UI a bit. Added footer links for dashboard
Showing
11 changed files
with
117 additions
and
71 deletions
Show diff stats
app/assets/stylesheets/common.scss
@@ -145,6 +145,19 @@ span.update-author { | @@ -145,6 +145,19 @@ span.update-author { | ||
145 | .label { | 145 | .label { |
146 | background-color: #474D57; | 146 | background-color: #474D57; |
147 | 147 | ||
148 | + &.label-tag { | ||
149 | + background: none; | ||
150 | + border: none; | ||
151 | + padding:4px 6px; | ||
152 | + color:#444; | ||
153 | + text-shadow:0 0 1px #fff; | ||
154 | + | ||
155 | + &.grouped { | ||
156 | + float: left; | ||
157 | + margin-right: 6px; | ||
158 | + padding: 6px; | ||
159 | + } | ||
160 | + } | ||
148 | &.label-issue { | 161 | &.label-issue { |
149 | background-color: #eee; | 162 | background-color: #eee; |
150 | border: 1px solid #ccc; | 163 | border: 1px solid #ccc; |
@@ -722,3 +735,10 @@ li.note { | @@ -722,3 +735,10 @@ li.note { | ||
722 | padding: 6px 20px; | 735 | padding: 6px 20px; |
723 | margin-right: 12px; | 736 | margin-right: 12px; |
724 | } | 737 | } |
738 | + | ||
739 | +.gitlab-promo { | ||
740 | + a { | ||
741 | + color:#aaa; | ||
742 | + margin-right: 30px; | ||
743 | + } | ||
744 | +} |
app/assets/stylesheets/gitlab_bootstrap/common.scss
@@ -72,3 +72,13 @@ img.lil_av { padding-left: 4px; padding-right:3px; } | @@ -72,3 +72,13 @@ img.lil_av { padding-left: 4px; padding-right:3px; } | ||
72 | /** HELPERS **/ | 72 | /** HELPERS **/ |
73 | .nothing_here_message { text-align:center; padding:20px; color:#777; } | 73 | .nothing_here_message { text-align:center; padding:20px; color:#777; } |
74 | p.slead { color:#456; font-size:16px; margin-bottom: 12px; font-weight: 200; line-height: 24px; } | 74 | p.slead { color:#456; font-size:16px; margin-bottom: 12px; font-weight: 200; line-height: 24px; } |
75 | + | ||
76 | +/** FORMS **/ | ||
77 | +input[type='search'].search-text-input { | ||
78 | + background-image: url("icon-search.png"); | ||
79 | + background-repeat: no-repeat; | ||
80 | + background-position: 10px; | ||
81 | + padding-left:25px; | ||
82 | + @include border-radius(4px); | ||
83 | + border:1px solid #ccc; | ||
84 | +} |
app/assets/stylesheets/sections/issues.scss
1 | -.issue_form_box { | 1 | +.issue_form_box { |
2 | @extend .main_box; | 2 | @extend .main_box; |
3 | - .issue_title { | 3 | + .issue_title { |
4 | @extend .top_box_content; | 4 | @extend .top_box_content; |
5 | - .clearfix { | ||
6 | - margin-bottom:0px; | ||
7 | - input { | 5 | + .clearfix { |
6 | + margin-bottom:0px; | ||
7 | + input { | ||
8 | @extend .span8; | 8 | @extend .span8; |
9 | } | 9 | } |
10 | } | 10 | } |
11 | } | 11 | } |
12 | - .issue_middle_block { | 12 | + .issue_middle_block { |
13 | @extend .middle_box_content; | 13 | @extend .middle_box_content; |
14 | height:30px; | 14 | height:30px; |
15 | - .issue_assignee { | 15 | + .issue_assignee { |
16 | @extend .span6; | 16 | @extend .span6; |
17 | float:left; | 17 | float:left; |
18 | } | 18 | } |
19 | - .issue_milestone { | 19 | + .issue_milestone { |
20 | @extend .span4; | 20 | @extend .span4; |
21 | float:left; | 21 | float:left; |
22 | } | 22 | } |
23 | } | 23 | } |
24 | - .issue_description { | 24 | + .issue_description { |
25 | @extend .bottom_box_content; | 25 | @extend .bottom_box_content; |
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | -.issues_table { | ||
30 | - .issue { | 29 | +.issues_table { |
30 | + .issue { | ||
31 | padding:7px 10px; | 31 | padding:7px 10px; |
32 | 32 | ||
33 | - .issue_check { | 33 | + .issue_check { |
34 | float:left; | 34 | float:left; |
35 | padding: 8px 0; | 35 | padding: 8px 0; |
36 | padding-right: 8px; | 36 | padding-right: 8px; |
37 | min-width: 15px; | 37 | min-width: 15px; |
38 | } | 38 | } |
39 | 39 | ||
40 | - p { | 40 | + p { |
41 | padding-top:0; | 41 | padding-top:0; |
42 | padding-bottom:2px; | 42 | padding-bottom:2px; |
43 | } | 43 | } |
44 | 44 | ||
45 | - img.avatar { | 45 | + img.avatar { |
46 | width:32px; | 46 | width:32px; |
47 | margin-top:4px; | 47 | margin-top:4px; |
48 | } | 48 | } |
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
52 | -input.check_all_issues { | 52 | +input.check_all_issues { |
53 | float:left; | 53 | float:left; |
54 | padding: 0; | 54 | padding: 0; |
55 | margin:0; | 55 | margin:0; |
@@ -59,8 +59,8 @@ input.check_all_issues { | @@ -59,8 +59,8 @@ input.check_all_issues { | ||
59 | height: 22px; | 59 | height: 22px; |
60 | } | 60 | } |
61 | 61 | ||
62 | -.issues_content { | ||
63 | - .title { | 62 | +.issues_content { |
63 | + .title { | ||
64 | height: 40px; | 64 | height: 40px; |
65 | } | 65 | } |
66 | } | 66 | } |
@@ -70,30 +70,30 @@ input.check_all_issues { | @@ -70,30 +70,30 @@ input.check_all_issues { | ||
70 | @media (min-width: 1200px) { .issues_filters select { width:220px; } } | 70 | @media (min-width: 1200px) { .issues_filters select { width:220px; } } |
71 | 71 | ||
72 | 72 | ||
73 | -#issues-table-holder { | ||
74 | - .issues_filters { | ||
75 | - form { | 73 | +#issues-table-holder { |
74 | + .issues_filters { | ||
75 | + form { | ||
76 | padding:0; | 76 | padding:0; |
77 | margin:0; | 77 | margin:0; |
78 | margin-top:7px | 78 | margin-top:7px |
79 | } | 79 | } |
80 | - } | 80 | + } |
81 | 81 | ||
82 | - .issues_bulk_update { | 82 | + .issues_bulk_update { |
83 | margin: 0; | 83 | margin: 0; |
84 | - form { | 84 | + form { |
85 | padding:0; | 85 | padding:0; |
86 | margin:0; | 86 | margin:0; |
87 | margin-top:7px | 87 | margin-top:7px |
88 | } | 88 | } |
89 | - .update_selected_issues { | 89 | + .update_selected_issues { |
90 | position:relative; | 90 | position:relative; |
91 | top:-2px; | 91 | top:-2px; |
92 | margin-left:4px; | 92 | margin-left:4px; |
93 | float:left; | 93 | float:left; |
94 | } | 94 | } |
95 | - | ||
96 | - .update_issues_text { | 95 | + |
96 | + .update_issues_text { | ||
97 | padding:3px; | 97 | padding:3px; |
98 | line-height: 18px; | 98 | line-height: 18px; |
99 | float:left; | 99 | float:left; |
@@ -101,10 +101,11 @@ input.check_all_issues { | @@ -101,10 +101,11 @@ input.check_all_issues { | ||
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||
104 | -#update_status { | 104 | +#update_status { |
105 | width:100px; | 105 | width:100px; |
106 | } | 106 | } |
107 | 107 | ||
108 | + | ||
108 | /** | 109 | /** |
109 | * Milestones list | 110 | * Milestones list |
110 | * | 111 | * |
app/assets/stylesheets/sections/merge_requests.scss
1 | -/** | 1 | +/** |
2 | * MR form | 2 | * MR form |
3 | * | 3 | * |
4 | */ | 4 | */ |
5 | 5 | ||
6 | -.mr_branch_box { | 6 | +.mr_branch_box { |
7 | @extend .ui-box; | 7 | @extend .ui-box; |
8 | margin-bottom:20px; | 8 | margin-bottom:20px; |
9 | 9 | ||
10 | - .body { | 10 | + .body { |
11 | background:#f1f1f1; | 11 | background:#f1f1f1; |
12 | } | 12 | } |
13 | 13 | ||
@@ -17,19 +17,19 @@ | @@ -17,19 +17,19 @@ | ||
17 | * MR -> show: Automerge widget | 17 | * MR -> show: Automerge widget |
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | -.automerge_widget { | ||
21 | - &.can_be_merged { | 20 | +.automerge_widget { |
21 | + &.can_be_merged { | ||
22 | background: #DFF0D8; | 22 | background: #DFF0D8; |
23 | } | 23 | } |
24 | 24 | ||
25 | - form { | 25 | + form { |
26 | margin-bottom:0; | 26 | margin-bottom:0; |
27 | - .clearfix { | 27 | + .clearfix { |
28 | margin-bottom:0; | 28 | margin-bottom:0; |
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | - .accept_group { | 32 | + .accept_group { |
33 | float:left; | 33 | float:left; |
34 | border: 1px solid #ADA; | 34 | border: 1px solid #ADA; |
35 | padding: 2px; | 35 | padding: 2px; |
@@ -37,29 +37,29 @@ | @@ -37,29 +37,29 @@ | ||
37 | border-radius: 5px; | 37 | border-radius: 5px; |
38 | background: #CEB; | 38 | background: #CEB; |
39 | 39 | ||
40 | - .accept_merge_request { | 40 | + .accept_merge_request { |
41 | font-size:13px; | 41 | font-size:13px; |
42 | float:left; | 42 | float:left; |
43 | } | 43 | } |
44 | - .remove_branch_holder { | 44 | + .remove_branch_holder { |
45 | margin-left:20px; | 45 | margin-left:20px; |
46 | margin-right:10px; | 46 | margin-right:10px; |
47 | float:left; | 47 | float:left; |
48 | } | 48 | } |
49 | - label { | 49 | + label { |
50 | color:#444; | 50 | color:#444; |
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
54 | 54 | ||
55 | - .how_to_merge_link { | 55 | + .how_to_merge_link { |
56 | @extend .primary; | 56 | @extend .primary; |
57 | } | 57 | } |
58 | } | 58 | } |
59 | 59 | ||
60 | -.mr_nav_tabs { | ||
61 | - li { | ||
62 | - a { | 60 | +.mr_nav_tabs { |
61 | + li { | ||
62 | + a { | ||
63 | font-weight:bold; | 63 | font-weight:bold; |
64 | padding:8px 20px; | 64 | padding:8px 20px; |
65 | text-align:center; | 65 | text-align:center; |
@@ -67,19 +67,19 @@ | @@ -67,19 +67,19 @@ | ||
67 | } | 67 | } |
68 | } | 68 | } |
69 | 69 | ||
70 | -li.merge_request { | 70 | +li.merge_request { |
71 | padding:7px 10px; | 71 | padding:7px 10px; |
72 | - img.avatar { | 72 | + img.avatar { |
73 | width: 32px; | 73 | width: 32px; |
74 | margin-top: 4px; | 74 | margin-top: 4px; |
75 | } | 75 | } |
76 | - p { | 76 | + p { |
77 | padding: 0px; | 77 | padding: 0px; |
78 | padding-bottom: 2px; | 78 | padding-bottom: 2px; |
79 | } | 79 | } |
80 | } | 80 | } |
81 | 81 | ||
82 | -.merge_in_progress { | 82 | +.merge_in_progress { |
83 | @extend .padded; | 83 | @extend .padded; |
84 | @extend .append-bottom-10; | 84 | @extend .append-bottom-10; |
85 | } | 85 | } |
@@ -88,22 +88,21 @@ li.merge_request { | @@ -88,22 +88,21 @@ li.merge_request { | ||
88 | @include round-borders-all(4px); | 88 | @include round-borders-all(4px); |
89 | padding:2px 4px; | 89 | padding:2px 4px; |
90 | border:none; | 90 | border:none; |
91 | - font-size:13px; | 91 | + font-size:14px; |
92 | background: #474D57; | 92 | background: #474D57; |
93 | color:#fff; | 93 | color:#fff; |
94 | - font-weight:bold; | ||
95 | - font-family: monospace; | 94 | + font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace; |
96 | } | 95 | } |
97 | 96 | ||
98 | -.mr_source_commit, | ||
99 | -.mr_target_commit { | ||
100 | - .commit { | 97 | +.mr_source_commit, |
98 | +.mr_target_commit { | ||
99 | + .commit { | ||
101 | margin:0; | 100 | margin:0; |
102 | padding:0; | 101 | padding:0; |
103 | padding: 5px; | 102 | padding: 5px; |
104 | margin-bottom: 5px; | 103 | margin-bottom: 5px; |
105 | .avatar { position:relative } | 104 | .avatar { position:relative } |
106 | - .row_title { | 105 | + .row_title { |
107 | color:#444; | 106 | color:#444; |
108 | } | 107 | } |
109 | .commit-author-name, | 108 | .commit-author-name, |
@@ -113,12 +112,12 @@ li.merge_request { | @@ -113,12 +112,12 @@ li.merge_request { | ||
113 | display:none; | 112 | display:none; |
114 | } | 113 | } |
115 | list-style:none; | 114 | list-style:none; |
116 | - &:hover { | 115 | + &:hover { |
117 | background:none; | 116 | background:none; |
118 | } | 117 | } |
119 | } | 118 | } |
120 | } | 119 | } |
121 | 120 | ||
122 | -.mr_direction_tip { | 121 | +.mr_direction_tip { |
123 | margin-top:40px | 122 | margin-top:40px |
124 | } | 123 | } |
app/views/admin/resque/show.html.haml
app/views/dashboard/index.html.haml
@@ -31,13 +31,19 @@ | @@ -31,13 +31,19 @@ | ||
31 | %span= project_last_activity(project) | 31 | %span= project_last_activity(project) |
32 | .bottom= paginate @projects, theme: "gitlab" | 32 | .bottom= paginate @projects, theme: "gitlab" |
33 | 33 | ||
34 | - %hr | ||
35 | %div | 34 | %div |
36 | %span.rss-icon | 35 | %span.rss-icon |
37 | = link_to dashboard_path(:atom, { private_token: current_user.private_token }) do | 36 | = link_to dashboard_path(:atom, { private_token: current_user.private_token }) do |
38 | = image_tag "rss_ui.png", title: "feed" | 37 | = image_tag "rss_ui.png", title: "feed" |
39 | %strong News Feed | 38 | %strong News Feed |
40 | 39 | ||
40 | + %hr | ||
41 | + .gitlab-promo | ||
42 | + = link_to "Homepage", "http://gitlabhq.com" | ||
43 | + = link_to "Blog", "http://blog.gitlabhq.com" | ||
44 | + = link_to "@gitlabhq", "https://twitter.com/gitlabhq" | ||
45 | + | ||
46 | + | ||
41 | - else | 47 | - else |
42 | %h3.nothing_here_message There are no projects you have access to. | 48 | %h3.nothing_here_message There are no projects you have access to. |
43 | %br | 49 | %br |
app/views/events/_event_last_push.html.haml
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | .event_lp | 2 | .event_lp |
3 | %div | 3 | %div |
4 | = image_tag gravatar_icon(event.author_email), class: "avatar" | 4 | = image_tag gravatar_icon(event.author_email), class: "avatar" |
5 | - %span Your pushed to | 5 | + %span Your pushed to |
6 | = event.ref_type | 6 | = event.ref_type |
7 | = link_to project_commits_path(event.project, ref: event.ref_name) do | 7 | = link_to project_commits_path(event.project, ref: event.ref_name) do |
8 | %strong= truncate(event.ref_name, length: 28) | 8 | %strong= truncate(event.ref_name, length: 28) |
app/views/issues/_show.html.haml
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue) | 4 | = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue) |
5 | .right | 5 | .right |
6 | - issue.labels.each do |label| | 6 | - issue.labels.each do |label| |
7 | - %span.label.label-issue.grouped | 7 | + %span.label.label-tag.grouped |
8 | %i.icon-tag | 8 | %i.icon-tag |
9 | = label.name | 9 | = label.name |
10 | - if issue.notes.any? | 10 | - if issue.notes.any? |
app/views/issues/index.html.haml
@@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
12 | = form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: :right do | 12 | = form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: :right do |
13 | = hidden_field_tag :project_id, @project.id, { id: 'project_id' } | 13 | = hidden_field_tag :project_id, @project.id, { id: 'project_id' } |
14 | = hidden_field_tag :status, params[:f] | 14 | = hidden_field_tag :status, params[:f] |
15 | - = search_field_tag :issue_search, nil, { placeholder: 'Search', class: 'issue_search span3 right neib' } | 15 | + = search_field_tag :issue_search, nil, { placeholder: 'Search', class: 'issue_search span3 right neib search-text-input' } |
16 | 16 | ||
17 | .clearfix | 17 | .clearfix |
18 | 18 |
app/views/labels/_label.html.haml
app/views/search/show.html.haml
@@ -3,8 +3,8 @@ | @@ -3,8 +3,8 @@ | ||
3 | = label_tag :search do | 3 | = label_tag :search do |
4 | %strong Looking for | 4 | %strong Looking for |
5 | .input | 5 | .input |
6 | - = text_field_tag :search, params[:search], placeholder: "issue 143", class: "input-xxlarge", id: "dashboard_search" | ||
7 | - = submit_tag 'Search', class: "btn primary" | 6 | + = search_field_tag :search, params[:search], placeholder: "issue 143", class: "input-xxlarge search-text-input", id: "dashboard_search" |
7 | + = submit_tag 'Search', class: "btn primary wide" | ||
8 | - if params[:search].present? | 8 | - if params[:search].present? |
9 | %br | 9 | %br |
10 | %h3 | 10 | %h3 |
@@ -15,8 +15,9 @@ | @@ -15,8 +15,9 @@ | ||
15 | .row | 15 | .row |
16 | .span6 | 16 | .span6 |
17 | %table | 17 | %table |
18 | - %tr | ||
19 | - %th Projects | 18 | + %thead |
19 | + %tr | ||
20 | + %th Projects | ||
20 | %tbody | 21 | %tbody |
21 | - @projects.each do |project| | 22 | - @projects.each do |project| |
22 | %tr | 23 | %tr |
@@ -32,8 +33,9 @@ | @@ -32,8 +33,9 @@ | ||
32 | %h4.nothing_here_message No Projects | 33 | %h4.nothing_here_message No Projects |
33 | %br | 34 | %br |
34 | %table | 35 | %table |
35 | - %tr | ||
36 | - %th Merge Requests | 36 | + %thead |
37 | + %tr | ||
38 | + %th Merge Requests | ||
37 | %tbody | 39 | %tbody |
38 | - @merge_requests.each do |merge_request| | 40 | - @merge_requests.each do |merge_request| |
39 | %tr | 41 | %tr |
@@ -50,8 +52,9 @@ | @@ -50,8 +52,9 @@ | ||
50 | %h4.nothing_here_message No Merge Requests | 52 | %h4.nothing_here_message No Merge Requests |
51 | .span6 | 53 | .span6 |
52 | %table | 54 | %table |
53 | - %tr | ||
54 | - %th Issues | 55 | + %thead |
56 | + %tr | ||
57 | + %th Issues | ||
55 | %tbody | 58 | %tbody |
56 | - @issues.each do |issue| | 59 | - @issues.each do |issue| |
57 | %tr | 60 | %tr |