Commit 4bf446cb91cb14f8631f7f9db198d976d7e3d47f
Exists in
spb-stable
and in
3 other branches
Merge branch 'ui/compact_projects_list' of /home/git/repositories/gitlab/gitlabhq
Showing
5 changed files
with
16 additions
and
34 deletions
Show diff stats
app/assets/stylesheets/common.scss
app/assets/stylesheets/sections/dashboard.scss
... | ... | @@ -67,44 +67,36 @@ |
67 | 67 | |
68 | 68 | .project-row, .group-row { |
69 | 69 | padding: 10px 12px !important; |
70 | - | |
71 | - .namespace-name { | |
72 | - color: #666; | |
73 | - font-weight: bold; | |
74 | - } | |
70 | + font-size: 14px; | |
71 | + line-height: 24px; | |
75 | 72 | |
76 | 73 | a { |
77 | 74 | display: block; |
78 | 75 | } |
79 | 76 | |
80 | 77 | .project-name, .group-name { |
81 | - font-size: 15px; | |
78 | + font-weight: 500; | |
82 | 79 | } |
83 | 80 | |
84 | 81 | .arrow { |
85 | 82 | float: right; |
86 | - padding: 10px 5px; | |
83 | + padding: 0px 5px; | |
87 | 84 | margin: 0; |
88 | 85 | font-size: 20px; |
89 | 86 | color: #666; |
90 | 87 | } |
91 | 88 | |
92 | 89 | .last-activity { |
90 | + float: right; | |
91 | + font-size: 12px; | |
93 | 92 | color: #AAA; |
94 | 93 | display: block; |
95 | - margin-top: 5px; | |
96 | 94 | .date { |
97 | 95 | color: #777; |
98 | 96 | } |
99 | 97 | } |
100 | 98 | } |
101 | 99 | |
102 | -.group-row { | |
103 | - .arrow { | |
104 | - padding: 2px 5px; | |
105 | - } | |
106 | -} | |
107 | - | |
108 | 100 | .project-access-icon { |
109 | 101 | margin-left: 10px; |
110 | 102 | float: left; |
... | ... | @@ -125,10 +117,8 @@ |
125 | 117 | |
126 | 118 | .dash-project-access-icon { |
127 | 119 | float: left; |
128 | - margin-right: 5px; | |
129 | - font-size: 18px; | |
130 | - color: #BBB; | |
120 | + margin-right: 3px; | |
121 | + color: #999; | |
131 | 122 | margin-bottom: 10px; |
132 | - margin-top: 2px; | |
133 | 123 | width: 16px; |
134 | 124 | } | ... | ... |
app/helpers/application_helper.rb
... | ... | @@ -136,14 +136,6 @@ module ApplicationHelper |
136 | 136 | Digest::SHA1.hexdigest string |
137 | 137 | end |
138 | 138 | |
139 | - def project_last_activity(project) | |
140 | - if project.last_activity_at | |
141 | - time_ago_with_tooltip(project.last_activity_at, 'bottom', 'last_activity_time_ago') + " ago" | |
142 | - else | |
143 | - "Never" | |
144 | - end | |
145 | - end | |
146 | - | |
147 | 139 | def authbutton(provider, size = 64) |
148 | 140 | file_name = "#{provider.to_s.split('_').first}_#{size}.png" |
149 | 141 | image_tag("authbuttons/#{file_name}", | ... | ... |
app/helpers/projects_helper.rb
... | ... | @@ -187,4 +187,12 @@ module ProjectsHelper |
187 | 187 | def default_clone_protocol |
188 | 188 | current_user ? "ssh" : "http" |
189 | 189 | end |
190 | + | |
191 | + def project_last_activity(project) | |
192 | + if project.last_activity_at | |
193 | + time_ago_with_tooltip(project.last_activity_at, 'bottom', 'last_activity_time_ago') + " ago" | |
194 | + else | |
195 | + "Never" | |
196 | + end | |
197 | + end | |
190 | 198 | end | ... | ... |