_projects.html.haml 841 Bytes
Newer Older
1
.panel.panel-default
2
  .panel-heading.clearfix
3 4 5
    .input-group
      = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
      - if current_user.can_create_project?
6 7
        .input-group-addon.dash-new-project
          = link_to new_project_path do
8
            %strong New project
9

10
  %ul.well-list.dash-list
11
    - projects.each do |project|
12
      %li.project-row
13 14
        = render "project", project: project

15
    - if projects.blank?
16
      %li
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
17
        .nothing-here-block There are no projects here.
18
    - if @projects_count > @projects_limit
19
      %li.bottom
20 21
        %span.light
          #{@projects_limit} of #{pluralize(@projects_count, 'project')} displayed.
22
        .pull-right
23 24
          = link_to projects_dashboard_path do
            Show all
25
            %i.fa.fa-angle-right