2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Projects"
|
2014-12-16 09:58:15 -05:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
%strong= @group.name
|
|
|
|
projects:
|
2015-04-10 08:39:10 -04:00
|
|
|
- if can? current_user, :admin_group, @group
|
2014-12-16 09:58:15 -05:00
|
|
|
.panel-head-actions
|
2015-03-07 13:35:17 -05:00
|
|
|
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-sm btn-success" do
|
2014-12-16 09:58:15 -05:00
|
|
|
%i.fa.fa-plus
|
|
|
|
New Project
|
|
|
|
%ul.well-list
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
|
|
|
.list-item-name
|
|
|
|
= visibility_level_icon(project.visibility_level)
|
|
|
|
%strong= link_to project.name_with_namespace, project
|
|
|
|
%span.label.label-gray
|
|
|
|
= repository_size(project)
|
|
|
|
.pull-right
|
2015-03-13 11:22:03 -04:00
|
|
|
= link_to 'Members', namespace_project_project_members_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-sm"
|
2015-03-14 03:29:32 -04:00
|
|
|
= link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-sm"
|
|
|
|
= link_to 'Remove', project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-sm btn-remove"
|
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"
|