2017-08-16 05:35:59 -04:00
|
|
|
- breadcrumb_title "Projects"
|
2015-09-14 13:46:58 -04:00
|
|
|
|
2018-04-10 13:11:34 -04:00
|
|
|
.card.prepend-top-default
|
|
|
|
.card-header
|
2014-12-16 09:58:15 -05:00
|
|
|
%strong= @group.name
|
|
|
|
projects:
|
2015-04-10 08:39:10 -04:00
|
|
|
- if can? current_user, :admin_group, @group
|
2016-01-22 16:37:05 -05:00
|
|
|
.controls
|
2015-03-07 13:35:17 -05:00
|
|
|
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-sm btn-success" do
|
2017-04-05 16:46:58 -04:00
|
|
|
New project
|
2019-09-20 05:06:17 -04:00
|
|
|
%ul.projects-list.content-list.group-settings-projects
|
2014-12-16 09:58:15 -05:00
|
|
|
- @projects.each do |project|
|
2019-09-20 05:06:17 -04:00
|
|
|
%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"
|
|
|
|
= link_to _('Remove'), project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-remove"
|
|
|
|
|
|
|
|
.stats
|
|
|
|
%span.badge.badge-pill
|
|
|
|
= storage_counter(project.statistics&.storage_size)
|
2015-08-10 13:42:17 -04:00
|
|
|
- if project.archived
|
2018-04-13 15:34:22 -04:00
|
|
|
%span.badge.badge-warning archived
|
2019-09-20 05:06:17 -04:00
|
|
|
|
|
|
|
.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)
|
2014-12-16 09:58:15 -05:00
|
|
|
- if @projects.blank?
|
|
|
|
.nothing-here-block This group has no projects yet
|
2014-05-29 14:30:20 -04:00
|
|
|
|
2014-12-16 09:58:15 -05:00
|
|
|
= paginate @projects, theme: "gitlab"
|