show project description in project listing on dashboard

This commit is contained in:
Dmitriy Zaporozhets 2013-03-18 19:22:15 +02:00
parent aa5327a565
commit 0eccc08015
2 changed files with 25 additions and 24 deletions

View File

@ -31,26 +31,33 @@
%ul.well-list %ul.well-list
- @projects.each do |project| - @projects.each do |project|
%li.clearfix %li.clearfix
.left .clearfix
= link_to project_path(project), class: dom_class(project) do %h5
- if project.namespace = link_to project_path(project), class: dom_class(project) do
= project.namespace.human_name - if project.namespace
\/ = project.namespace.human_name
%strong.well-title \/
= truncate(project.name, length: 25) %strong
%br = truncate(project.name, length: 45)
%small.light .pull-right.light
%strong Last activity: - if project.owner == current_user
%span= project_last_activity(project) %i.icon-wrench
.pull-right.light - tm = project.team.get_tm(current_user.id)
- if project.owner == current_user - if tm
%i.icon-wrench %strong= tm.project_access_human
- tm = project.team.get_tm(current_user.id) .clearfix
- if tm .left
= tm.project_access_human - if project.description.present?
%span.light= project.description
.pull-right.light
%small.light
Last activity #{project_last_activity(project)}
- if @projects.blank? - if @projects.blank?
%li %li
%h3.nothing_here_message There are no projects here. %h3.nothing_here_message There are no projects here.
.bottom= paginate @projects, theme: "gitlab" .bottom
%hr
= paginate @projects, theme: "gitlab"

View File

@ -19,9 +19,3 @@
= link_to project_services_path(@project) do = link_to project_services_path(@project) do
%span %span
Services Services
-#= nav_link(path: 'projects#files') do
-#= link_to 'Attachments', files_project_path(@project), class: "files-tab tab"
-#= nav_link(controller: :snippets) do
-#= link_to 'Snippets', project_snippets_path(@project), class: "snippets-tab tab"