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

31 lines
1 KiB
Text
Raw Normal View History

.ui-box
2013-07-13 13:36:21 -04:00
.title.clearfix
= 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-06-19 06:52:25 -04:00
= link_to new_project_path, class: "btn" do
2012-10-02 12:37:53 -04:00
%i.icon-plus
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
2012-10-02 12:37:53 -04:00
= link_to project_path(project), class: dom_class(project) do
2013-07-09 13:52:06 -04:00
%span.namespace-name
- if project.namespace
= project.namespace.human_name
\/
2013-07-13 02:55:46 -04:00
%span.project-name.filter-title
= truncate(project.name, length: 25)
2012-10-02 12:37:53 -04:00
%span.arrow
2013-07-09 13:52:06 -04:00
%i.icon-angle-right
%span.last-activity
%span Last activity:
%span.date= project_last_activity(project)
- if projects.blank?
%li
%h3.nothing_here_message There are no projects here.
- if @projects_count > 20
%li.bottom
2013-01-27 05:56:20 -05:00
%strong= link_to "show all projects", projects_dashboard_path