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

30 lines
1.2 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- breadcrumb_title "Projects"
2015-09-25 12:07:36 +05:30
2018-11-08 19:23:39 +05:30
.card.prepend-top-default
.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
2018-11-08 19:23:39 +05:30
%ul.content-list
2015-04-26 12:48:37 +05:30
- @projects.each do |project|
%li
.list-item-name
2015-09-25 12:07:36 +05:30
%span{ class: visibility_level_color(project.visibility_level) }
= visibility_level_icon(project.visibility_level)
2018-03-27 19:54:05 +05:30
%strong= link_to project.full_name, project
2018-11-08 19:23:39 +05:30
.float-right
2015-09-25 12:07:36 +05:30
- if project.archived
2018-11-08 19:23:39 +05:30
%span.badge.badge-warning archived
%span.badge.badge-pill
2017-08-17 22:00:37 +05:30
= storage_counter(project.statistics.storage_size)
2017-09-10 17:25:29 +05:30
= link_to 'Members', project_project_members_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-sm"
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-sm"
2015-04-26 12:48:37 +05:30
= link_to 'Remove', project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-sm btn-remove"
- 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"