2013-03-14 11:12:11 +00:00
|
|
|
.ui-box
|
2013-06-19 10:52:25 +00:00
|
|
|
%h5.title.clearfix
|
|
|
|
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-projects-filter'
|
2012-10-02 16:37:53 +00:00
|
|
|
- if current_user.can_create_project?
|
2013-01-30 14:40:43 +00:00
|
|
|
%span.pull-right
|
2013-06-19 10:52:25 +00:00
|
|
|
= link_to new_project_path, class: "btn" do
|
2012-10-02 16:37:53 +00:00
|
|
|
%i.icon-plus
|
|
|
|
New Project
|
2012-11-30 03:14:05 +00:00
|
|
|
|
2013-06-19 10:52:25 +00:00
|
|
|
%ul.well-list.dash-projects-list
|
2012-10-02 16:37:53 +00:00
|
|
|
- projects.each do |project|
|
2012-12-18 03:14:05 +00:00
|
|
|
%li
|
2012-10-02 16:37:53 +00:00
|
|
|
= link_to project_path(project), class: dom_class(project) do
|
2012-11-24 20:39:51 +00:00
|
|
|
- if project.namespace
|
|
|
|
= project.namespace.human_name
|
|
|
|
\/
|
2012-12-18 03:14:05 +00:00
|
|
|
%strong.well-title
|
2012-11-24 20:39:51 +00:00
|
|
|
= truncate(project.name, length: 25)
|
2012-10-02 16:37:53 +00:00
|
|
|
%span.arrow
|
|
|
|
→
|
|
|
|
%span.last_activity
|
|
|
|
%strong Last activity:
|
|
|
|
%span= project_last_activity(project)
|
2012-12-04 09:18:13 +00:00
|
|
|
- if projects.blank?
|
2012-12-18 03:14:05 +00:00
|
|
|
%li
|
2012-12-04 09:18:13 +00:00
|
|
|
%h3.nothing_here_message There are no projects here.
|
2013-01-27 10:34:27 +00:00
|
|
|
- if @projects_count > 20
|
|
|
|
%li.bottom
|
2013-01-27 10:56:20 +00:00
|
|
|
%strong= link_to "show all projects", projects_dashboard_path
|