2013-03-14 07:12:11 -04:00
|
|
|
.ui-box
|
2013-07-13 13:36:21 -04:00
|
|
|
.title.clearfix
|
2013-07-03 13:10:27 -04:00
|
|
|
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter'
|
2012-10-02 12:37:53 -04:00
|
|
|
- if current_user.can_create_project?
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.pull-right
|
2013-08-27 06:11:05 -04:00
|
|
|
= link_to new_project_path, class: "btn btn-new" do
|
2012-10-02 12:37:53 -04:00
|
|
|
%i.icon-plus
|
2013-08-27 06:11:05 -04:00
|
|
|
New project
|
2012-11-29 22:14:05 -05:00
|
|
|
|
2013-07-03 13:10:27 -04:00
|
|
|
%ul.well-list.dash-list
|
2012-10-02 12:37:53 -04:00
|
|
|
- projects.each do |project|
|
2013-07-09 13:52:06 -04:00
|
|
|
%li.project-row
|
2013-09-26 12:46:31 -04:00
|
|
|
= render "project", project: project
|
|
|
|
|
2012-12-04 04:18:13 -05:00
|
|
|
- if projects.blank?
|
2012-12-17 22:14:05 -05:00
|
|
|
%li
|
2012-12-04 04:18:13 -05:00
|
|
|
%h3.nothing_here_message There are no projects here.
|
2013-09-26 12:46:31 -04:00
|
|
|
- if @projects_count > @projects_limit
|
2013-01-27 05:34:27 -05:00
|
|
|
%li.bottom
|
2013-09-26 12:46:31 -04:00
|
|
|
%span.light
|
|
|
|
#{@projects_limit} of #{pluralize(@projects_count, 'project')} displayed.
|
|
|
|
.pull-right.append-right-10
|
|
|
|
= link_to projects_dashboard_path do
|
|
|
|
Show all
|
|
|
|
%i.icon-angle-right
|