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
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn"
|
2018-02-07 22:32:17 -05:00
|
|
|
%button.delete-project-button.btn.btn-danger{ data: { toggle: 'modal',
|
|
|
|
target: '#delete-project-modal',
|
|
|
|
delete_project_url: project_path(project),
|
|
|
|
project_name: project.name }, type: 'button' }
|
|
|
|
= s_('AdminProjects|Delete')
|
|
|
|
|
2017-03-29 16:01:45 -04:00
|
|
|
.stats
|
2018-04-09 12:33:41 -04:00
|
|
|
%span.badge.badge-pill
|
2017-03-29 16:01:45 -04:00
|
|
|
= storage_counter(project.statistics.storage_size)
|
|
|
|
- if project.archived
|
2018-04-13 15:34:22 -04:00
|
|
|
%span.badge.badge-warning archived
|
2017-03-03 05:13:03 -05:00
|
|
|
.title
|
2018-07-02 11:09:49 -04:00
|
|
|
= link_to(admin_namespace_project_path(project.namespace, project)) do
|
2017-03-03 05:13:03 -05:00
|
|
|
.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
|
2018-02-07 22:32:17 -05:00
|
|
|
|
|
|
|
#delete-project-modal
|