Commit e90277f9b526194bacf740c352e014baa14b1f40

Authored by Dmitriy Zaporozhets
1 parent 7c408960

show project description on public area

app/assets/stylesheets/gitlab_bootstrap/common.scss
@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 .cgray { color:gray } 2 .cgray { color:gray }
3 .cred { color:#D12F19 } 3 .cred { color:#D12F19 }
4 .cgreen { color:#4a2 } 4 .cgreen { color:#4a2 }
  5 +.cblue { color:#29A }
5 .cblack { color:#111 } 6 .cblack { color:#111 }
6 .cdark { color:#444 } 7 .cdark { color:#444 }
7 .cwhite { color:#fff!important } 8 .cwhite { color:#fff!important }
app/assets/stylesheets/sections/projects.scss
@@ -120,3 +120,16 @@ ul.nav.nav-projects-tabs { @@ -120,3 +120,16 @@ ul.nav.nav-projects-tabs {
120 .team_member_row form { 120 .team_member_row form {
121 margin: 0px; 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 %h3.page_title 1 %h3.page_title
2 - Projects 2 + Projects (#{@projects.total_count})
3 %small with read-only access 3 %small with read-only access
4 %hr 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"