BigW Consortium Gitlab

projects.html.haml 1.36 KB
Newer Older
1
- page_title "Projects"
2 3
- header_title group_title(@group, "Projects", projects_group_path(@group))

4 5 6 7
.panel.panel-default
  .panel-heading
    %strong= @group.name
    projects:
8
    - if can? current_user, :admin_group, @group
9
      .panel-head-actions
10
        = link_to new_project_path(namespace_id: @group.id), class: "btn btn-sm btn-success" do
11 12 13 14 15 16
          %i.fa.fa-plus
          New Project
  %ul.well-list
    - @projects.each do |project|
      %li
        .list-item-name
17 18
          %span{ class: visibility_level_color(project.visibility_level) }
            = visibility_level_icon(project.visibility_level)
19
          %strong= link_to project.name_with_namespace, project
20 21 22
        .pull-right
          - if project.archived
            %span.label.label-warning archived
23 24
          %span.label.label-gray
            = repository_size(project)
25
          = link_to 'Members', namespace_project_project_members_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-sm"
Dmitriy Zaporozhets committed
26 27
          = 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"
28 29
    - if @projects.blank?
      .nothing-here-block This group has no projects yet
30

31
= paginate @projects, theme: "gitlab"