2014-05-29 15:42:44 +00:00
|
|
|
.panel.panel-default
|
2014-05-29 15:43:21 +00:00
|
|
|
.panel-heading.clearfix
|
2013-12-31 00:50:36 +00:00
|
|
|
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
|
2012-10-02 16:37:53 +00:00
|
|
|
- if current_user.can_create_project?
|
2014-07-31 15:57:41 +00:00
|
|
|
= link_to new_project_path, class: "btn btn-new pull-right" do
|
|
|
|
%i.icon-plus
|
|
|
|
New project
|
2012-11-30 03:14:05 +00:00
|
|
|
|
2013-07-03 17:10:27 +00:00
|
|
|
%ul.well-list.dash-list
|
2012-10-02 16:37:53 +00:00
|
|
|
- projects.each do |project|
|
2013-07-09 17:52:06 +00:00
|
|
|
%li.project-row
|
2013-09-26 16:46:31 +00:00
|
|
|
= render "project", project: project
|
|
|
|
|
2012-12-04 09:18:13 +00:00
|
|
|
- if projects.blank?
|
2012-12-18 03:14:05 +00:00
|
|
|
%li
|
2014-02-20 11:51:22 +00:00
|
|
|
.nothing-here-block There are no projects here.
|
2013-09-26 16:46:31 +00:00
|
|
|
- if @projects_count > @projects_limit
|
2013-01-27 10:34:27 +00:00
|
|
|
%li.bottom
|
2013-09-26 16:46:31 +00:00
|
|
|
%span.light
|
|
|
|
#{@projects_limit} of #{pluralize(@projects_count, 'project')} displayed.
|
2014-06-14 17:33:12 +00:00
|
|
|
.pull-right
|
2013-09-26 16:46:31 +00:00
|
|
|
= link_to projects_dashboard_path do
|
|
|
|
Show all
|
|
|
|
%i.icon-angle-right
|