2017-03-03 05:13:03 -05:00
|
|
|
.js-projects-list-holder
|
|
|
|
- if @projects.any?
|
2017-03-29 16:01:45 -04:00
|
|
|
%ul.projects-list.content-list.admin-projects
|
2017-03-03 05:13:03 -05:00
|
|
|
- @projects.each_with_index do |project|
|
2017-03-29 16:01:45 -04:00
|
|
|
%li.project-row{ class: ('no-description' if project.description.blank?) }
|
2017-03-03 05:13:03 -05:00
|
|
|
.controls
|
|
|
|
= link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn"
|
|
|
|
= link_to 'Delete', [project.namespace.becomes(Namespace), project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-remove"
|
2017-03-29 16:01:45 -04:00
|
|
|
.stats
|
|
|
|
%span.badge
|
|
|
|
= storage_counter(project.statistics.storage_size)
|
|
|
|
- if project.archived
|
|
|
|
%span.label.label-warning archived
|
2017-03-03 05:13:03 -05:00
|
|
|
.title
|
|
|
|
= link_to [:admin, project.namespace.becomes(Namespace), project] do
|
|
|
|
.dash-project-avatar
|
|
|
|
.avatar-container.s40
|
|
|
|
= project_icon(project, alt: '', class: 'avatar project-avatar s40')
|
|
|
|
%span.project-full-name
|
|
|
|
%span.namespace-name
|
|
|
|
- if project.namespace
|
|
|
|
= project.namespace.human_name
|
|
|
|
\/
|
2017-03-29 16:01:45 -04:00
|
|
|
%span.project-name
|
2017-03-03 05:13:03 -05:00
|
|
|
= project.name
|
|
|
|
|
|
|
|
- if project.description.present?
|
|
|
|
.description
|
|
|
|
= markdown_field(project, :description)
|
|
|
|
|
|
|
|
= paginate @projects, theme: 'gitlab'
|
|
|
|
- else
|
|
|
|
.nothing-here-block No projects found
|