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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.6 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
.js-projects-list-holder
- if @projects.any?
2022-11-25 23:54:43 +05:30
%ul.content-list
2021-06-08 01:23:25 +05:30
- @projects.each do |project|
2022-11-25 23:54:43 +05:30
%li.project-row.gl-align-items-center{ class: 'gl-display-flex!' }
.avatar-container.rect-avatar.s40.gl-flex-shrink-0
= project_icon(project, alt: '', class: 'avatar project-avatar s40', width: 40, height: 40)
.gl-min-w-0.gl-flex-grow-1
.title
= link_to(admin_project_path(project)) do
%span.project-full-name
%span.namespace-name
- if project.namespace
= project.namespace.human_name
\/
%span.project-name
= project.name
2018-03-17 18:26:18 +05:30
2022-11-25 23:54:43 +05:30
- if project.description.present?
.description
= markdown_field(project, :description)
.stats.gl-text-gray-500.gl-flex-shrink-0.gl-display-none.gl-sm-display-flex
2022-01-26 12:08:38 +05:30
= gl_badge_tag 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
2022-11-25 23:54:43 +05:30
.controls.gl-flex-shrink-0.gl-ml-5
= render Pajamas::ButtonComponent.new(href: edit_project_path(project), button_options: { id: dom_id(project, :edit) }) do
2023-03-04 22:38:38 +05:30
= _('Edit')
= render Pajamas::ButtonComponent.new(variant: :danger, button_options: { class: 'delete-project-button', data: { delete_project_url: admin_project_path(project), project_name: project.name } }) do
2022-11-25 23:54:43 +05:30
= s_('AdminProjects|Delete')
2017-08-17 22:00:37 +05:30
= paginate @projects, theme: 'gitlab'
- else
2021-04-29 21:17:54 +05:30
.nothing-here-block= _('No projects found')
2018-03-17 18:26:18 +05:30
#delete-project-modal