2017-03-03 10:13:03 +00:00
|
|
|
.js-projects-list-holder
|
|
|
|
- if @projects.any?
|
2017-03-29 20:01:45 +00:00
|
|
|
%ul.projects-list.content-list.admin-projects
|
2021-04-21 06:09:28 +00:00
|
|
|
- @projects.each do |project|
|
2017-03-29 20:01:45 +00:00
|
|
|
%li.project-row{ class: ('no-description' if project.description.blank?) }
|
2017-03-03 10:13:03 +00:00
|
|
|
.controls
|
2021-04-13 00:11:29 +00:00
|
|
|
= link_to _('Edit'), edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn gl-button btn-default"
|
2021-01-19 12:10:46 +00:00
|
|
|
%button.delete-project-button.gl-button.btn.btn-danger{ data: { delete_project_url: admin_project_path(project), project_name: project.name } }
|
2018-02-08 03:32:17 +00:00
|
|
|
= s_('AdminProjects|Delete')
|
|
|
|
|
2017-03-29 20:01:45 +00:00
|
|
|
.stats
|
2021-12-07 21:14:42 +00:00
|
|
|
= gl_badge_tag storage_counter(project.statistics&.storage_size)
|
2019-12-17 15:08:15 +00:00
|
|
|
= render_if_exists 'admin/projects/archived', project: project
|
2017-03-03 10:13:03 +00:00
|
|
|
.title
|
2019-05-29 20:18:40 +00:00
|
|
|
= link_to(admin_project_path(project)) do
|
2017-03-03 10:13:03 +00:00
|
|
|
.dash-project-avatar
|
2019-02-25 13:00:05 +00:00
|
|
|
.avatar-container.rect-avatar.s40
|
2018-08-07 06:04:33 +00:00
|
|
|
= project_icon(project, alt: '', class: 'avatar project-avatar s40', width: 40, height: 40)
|
2017-03-03 10:13:03 +00:00
|
|
|
%span.project-full-name
|
|
|
|
%span.namespace-name
|
|
|
|
- if project.namespace
|
|
|
|
= project.namespace.human_name
|
|
|
|
\/
|
2017-03-29 20:01:45 +00:00
|
|
|
%span.project-name
|
2017-03-03 10:13:03 +00:00
|
|
|
= project.name
|
|
|
|
|
|
|
|
- if project.description.present?
|
|
|
|
.description
|
|
|
|
= markdown_field(project, :description)
|
|
|
|
|
|
|
|
= paginate @projects, theme: 'gitlab'
|
|
|
|
- else
|
2021-04-13 00:11:29 +00:00
|
|
|
.nothing-here-block= _('No projects found')
|
2018-02-08 03:32:17 +00:00
|
|
|
|
|
|
|
#delete-project-modal
|