debian-mirror-gitlab/app/views/admin/projects/_projects.html.haml

41 lines
1.6 KiB
Text
Raw Normal View History

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',
2019-09-04 21:01:54 +05:30
delete_project_url: admin_project_path(project),
2018-03-17 18:26:18 +05:30
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
2019-09-04 21:01:54 +05:30
= storage_counter(project.statistics&.storage_size)
2017-08-17 22:00:37 +05:30
- 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
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