2014-12-16 09:58:15 -05:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
%strong= @group.name
|
|
|
|
projects:
|
|
|
|
- if can? current_user, :manage_group, @group
|
|
|
|
.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-01-24 13:02:58 -05:00
|
|
|
= link_to 'Members', namespace_project_team_index_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
|
|
|
|
= link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
|
2014-12-16 09:58:15 -05:00
|
|
|
= link_to 'Remove', project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-small btn-remove"
|
|
|
|
- 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"
|