debian-mirror-gitlab/app/views/groups/projects.html.haml

48 lines
1.9 KiB
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- breadcrumb_title _("Projects")
- page_title _("Projects")
2015-09-25 12:07:36 +05:30
2020-07-28 23:09:34 +05:30
.card.gl-mt-3
2018-11-08 19:23:39 +05:30
.card-header
2015-04-26 12:48:37 +05:30
%strong= @group.name
projects:
- if can? current_user, :admin_group, @group
2016-04-02 18:10:28 +05:30
.controls
2015-04-26 12:48:37 +05:30
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-sm btn-success" do
2017-08-17 22:00:37 +05:30
New project
2019-12-21 20:55:43 +05:30
%ul.projects-list.content-list.group-settings-projects
2015-04-26 12:48:37 +05:30
- @projects.each do |project|
2019-12-21 20:55:43 +05:30
%li.project-row{ class: ('no-description' if project.description.blank?) }
.controls
= link_to _('Members'), project_project_members_path(project), id: "edit_#{dom_id(project)}", class: "btn"
= link_to _('Edit'), edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn"
2021-01-03 14:25:43 +05:30
= link_to _('Delete'), project, data: { confirm: remove_project_message(project)}, method: :delete, class: "gl-button btn btn-danger"
2019-12-21 20:55:43 +05:30
.stats
%span.badge.badge-pill
= storage_counter(project.statistics&.storage_size)
2015-09-25 12:07:36 +05:30
- if project.archived
2018-11-08 19:23:39 +05:30
%span.badge.badge-warning archived
2019-12-21 20:55:43 +05:30
.title
= link_to(project_path(project)) do
.dash-project-avatar
.avatar-container.rect-avatar.s40
= project_icon(project, alt: '', class: 'avatar project-avatar s40', width: 40, height: 40)
%span.project-full-name
%span.namespace-name
- if project.namespace
= project.namespace.human_name
\/
%span.project-name
= project.name
%span{ class: visibility_level_color(project.visibility_level) }
= visibility_level_icon(project.visibility_level)
- if project.description.present?
.description
= markdown_field(project, :description)
2015-04-26 12:48:37 +05:30
- if @projects.blank?
.nothing-here-block This group has no projects yet
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
= paginate @projects, theme: "gitlab"