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

26 lines
826 B
Plaintext
Raw Normal View History

.ui-box
2013-07-13 17:36:21 +00:00
.title.clearfix
= 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?
2013-01-30 14:40:43 +00:00
%span.pull-right
2013-08-27 10:11:05 +00:00
= link_to new_project_path, class: "btn btn-new" do
2012-10-02 16:37:53 +00:00
%i.icon-plus
2013-08-27 10:11:05 +00:00
New project
2012-11-30 03:14:05 +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
= 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.append-right-10
= link_to projects_dashboard_path do
Show all
%i.icon-angle-right