diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-18 19:22:15 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-18 19:22:15 +0200 |
commit | 0eccc08015681f882561581d4603466512037f6c (patch) | |
tree | cb480db689733e2dbda0b6b53e2046f0e6389530 /app/views/dashboard | |
parent | aa5327a565c4f528760520031089f2a1a68d7535 (diff) | |
download | gitlab-ce-0eccc08015681f882561581d4603466512037f6c.tar.gz |
show project description in project listing on dashboard
Diffstat (limited to 'app/views/dashboard')
-rw-r--r-- | app/views/dashboard/projects.html.haml | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/app/views/dashboard/projects.html.haml b/app/views/dashboard/projects.html.haml index e211fc34d1a..29a16d61e63 100644 --- a/app/views/dashboard/projects.html.haml +++ b/app/views/dashboard/projects.html.haml @@ -31,26 +31,33 @@ %ul.well-list - @projects.each do |project| %li.clearfix - .left - = link_to project_path(project), class: dom_class(project) do - - if project.namespace - = project.namespace.human_name - \/ - %strong.well-title - = truncate(project.name, length: 25) - %br - %small.light - %strong Last activity: - %span= project_last_activity(project) - .pull-right.light - - if project.owner == current_user - %i.icon-wrench - - tm = project.team.get_tm(current_user.id) - - if tm - = tm.project_access_human + .clearfix + %h5 + = link_to project_path(project), class: dom_class(project) do + - if project.namespace + = project.namespace.human_name + \/ + %strong + = truncate(project.name, length: 45) + .pull-right.light + - if project.owner == current_user + %i.icon-wrench + - tm = project.team.get_tm(current_user.id) + - if tm + %strong= tm.project_access_human + .clearfix + .left + - if project.description.present? + %span.light= project.description + + .pull-right.light + %small.light + Last activity #{project_last_activity(project)} - if @projects.blank? %li %h3.nothing_here_message There are no projects here. - .bottom= paginate @projects, theme: "gitlab" + .bottom + %hr + = paginate @projects, theme: "gitlab" |