2017-08-17 22:00:37 +05:30
|
|
|
.js-projects-list-holder
|
|
|
|
- if @projects.any?
|
|
|
|
%ul.projects-list.content-list.admin-projects
|
|
|
|
- @projects.each_with_index do |project|
|
|
|
|
%li.project-row{ class: ('no-description' if project.description.blank?) }
|
|
|
|
.controls
|
2021-03-11 19:13:27 +05:30
|
|
|
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "gl-button btn"
|
|
|
|
%button.delete-project-button.gl-button.btn.btn-danger{ data: { delete_project_url: admin_project_path(project), project_name: project.name } }
|
2018-03-17 18:26:18 +05:30
|
|
|
= s_('AdminProjects|Delete')
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.stats
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill
|
2019-09-04 21:01:54 +05:30
|
|
|
= storage_counter(project.statistics&.storage_size)
|
2020-01-01 13:55:28 +05:30
|
|
|
= render_if_exists 'admin/projects/archived', project: project
|
2017-08-17 22:00:37 +05:30
|
|
|
.title
|
2019-09-04 21:01:54 +05:30
|
|
|
= link_to(admin_project_path(project)) do
|
2017-08-17 22:00:37 +05:30
|
|
|
.dash-project-avatar
|
2019-07-07 11:18:12 +05:30
|
|
|
.avatar-container.rect-avatar.s40
|
2018-11-18 11:00:15 +05:30
|
|
|
= project_icon(project, alt: '', class: 'avatar project-avatar s40', width: 40, height: 40)
|
2017-08-17 22:00:37 +05:30
|
|
|
%span.project-full-name
|
|
|
|
%span.namespace-name
|
|
|
|
- if project.namespace
|
|
|
|
= project.namespace.human_name
|
|
|
|
\/
|
|
|
|
%span.project-name
|
|
|
|
= project.name
|
|
|
|
|
|
|
|
- if project.description.present?
|
|
|
|
.description
|
|
|
|
= markdown_field(project, :description)
|
|
|
|
|
|
|
|
= paginate @projects, theme: 'gitlab'
|
|
|
|
- else
|
|
|
|
.nothing-here-block No projects found
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
#delete-project-modal
|