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
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn"
|
2018-03-17 18:26:18 +05:30
|
|
|
%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-08-17 22:00:37 +05:30
|
|
|
.stats
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill
|
2017-08-17 22:00:37 +05:30
|
|
|
= storage_counter(project.statistics.storage_size)
|
|
|
|
- if project.archived
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-warning archived
|
2017-08-17 22:00:37 +05:30
|
|
|
.title
|
2018-11-18 11:00:15 +05:30
|
|
|
= link_to(admin_namespace_project_path(project.namespace, project)) do
|
2017-08-17 22:00:37 +05:30
|
|
|
.dash-project-avatar
|
|
|
|
.avatar-container.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
|