gitlab-org--gitlab-foss/app/views/dashboard/_projects.html.haml

25 lines
815 B
Plaintext
Raw Normal View History

.panel.panel-default
.panel-heading.clearfix
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
2012-10-02 12:37:53 -04:00
- if current_user.can_create_project?
2014-07-31 11:57:41 -04:00
= link_to new_project_path, class: "btn btn-new pull-right" do
2014-10-01 18:21:29 -04:00
%i.fa.fa-plus
2014-07-31 11:57:41 -04:00
New project
2012-11-29 22:14:05 -05: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
= render "project", project: project
- if projects.blank?
%li
.nothing-here-block There are no projects here.
- if @projects_count > @projects_limit
%li.bottom
%span.light
#{@projects_limit} of #{pluralize(@projects_count, 'project')} displayed.
.pull-right
= link_to projects_dashboard_path do
Show all
2014-10-01 18:21:29 -04:00
%i.fa.fa-angle-right