BigW Consortium Gitlab

_projects.html.haml 815 Bytes
Newer Older
1
.panel.panel-default
2
  .panel-heading.clearfix
3
    = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
4
    - if current_user.can_create_project?
Rob Taylor committed
5
      = link_to new_project_path, class: "btn btn-new pull-right" do
6
        %i.fa.fa-plus
Rob Taylor committed
7
        New project
8

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

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