Commit e90277f9b526194bacf740c352e014baa14b1f40
1 parent
7c408960
Exists in
master
and in
4 other branches
show project description on public area
Showing
3 changed files
with
29 additions
and
13 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/common.scss
app/assets/stylesheets/sections/projects.scss
| ... | ... | @@ -120,3 +120,16 @@ ul.nav.nav-projects-tabs { |
| 120 | 120 | .team_member_row form { |
| 121 | 121 | margin: 0px; |
| 122 | 122 | } |
| 123 | + | |
| 124 | +.public-projects { | |
| 125 | + li { | |
| 126 | + margin-top: 8px; | |
| 127 | + margin-bottom: 5px; | |
| 128 | + border-bottom: 1px solid #eee; | |
| 129 | + | |
| 130 | + .description { | |
| 131 | + margin-left: 22px; | |
| 132 | + color: #aaa; | |
| 133 | + } | |
| 134 | + } | |
| 135 | +} | ... | ... |
app/views/public/projects/index.html.haml
| 1 | 1 | %h3.page_title |
| 2 | - Projects | |
| 2 | + Projects (#{@projects.total_count}) | |
| 3 | 3 | %small with read-only access |
| 4 | 4 | %hr |
| 5 | 5 | |
| 6 | -%ul.unstyled | |
| 7 | - - @projects.each do |project| | |
| 8 | - %li.clearfix | |
| 9 | - %h5 | |
| 10 | - %i.icon-share | |
| 11 | - = project.name_with_namespace | |
| 12 | - .pull-right | |
| 13 | - %pre.dark.tiny git clone #{project.http_url_to_repo} | |
| 6 | +.public-projects | |
| 7 | + %ul.unstyled | |
| 8 | + - @projects.each do |project| | |
| 9 | + %li.clearfix | |
| 10 | + %h5 | |
| 11 | + %i.icon-share | |
| 12 | + = project.name_with_namespace | |
| 13 | + .pull-right | |
| 14 | + %pre.dark.tiny git clone #{project.http_url_to_repo} | |
| 15 | + %p.description | |
| 16 | + = project.description | |
| 17 | + - unless @projects.present? | |
| 18 | + %h3.nothing_here_message No public projects | |
| 14 | 19 | |
| 15 | - - unless @projects.present? | |
| 16 | - %h3.nothing_here_message No public projects | |
| 17 | - | |
| 18 | -= paginate @projects, theme: "admin" | |
| 20 | + = paginate @projects, theme: "admin" | ... | ... |