Commit 0eccc080 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

show project description in project listing on dashboard

parent aa5327a5
...@@ -31,26 +31,33 @@ ...@@ -31,26 +31,33 @@
%ul.well-list %ul.well-list
- @projects.each do |project| - @projects.each do |project|
%li.clearfix %li.clearfix
.left .clearfix
%h5
= link_to project_path(project), class: dom_class(project) do = link_to project_path(project), class: dom_class(project) do
- if project.namespace - if project.namespace
= project.namespace.human_name = project.namespace.human_name
\/ \/
%strong.well-title %strong
= truncate(project.name, length: 25) = truncate(project.name, length: 45)
%br
%small.light
%strong Last activity:
%span= project_last_activity(project)
.pull-right.light .pull-right.light
- if project.owner == current_user - if project.owner == current_user
%i.icon-wrench %i.icon-wrench
- tm = project.team.get_tm(current_user.id) - tm = project.team.get_tm(current_user.id)
- if tm - if tm
= tm.project_access_human %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? - 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"
...@@ -19,9 +19,3 @@ ...@@ -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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment