summaryrefslogtreecommitdiff
path: root/app/views/admin/projects/_projects.html.haml
blob: c1a9f8d6ddd49d8c19d5d745a972f9f9a934263b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.js-projects-list-holder
  - if @projects.any?
    %ul.projects-list.content-list
      - @projects.each_with_index do |project|
        %li.project-row
          .controls
            - if project.archived
              %span.label.label-warning archived
            %span.badge
              = storage_counter(project.statistics.storage_size)
            = link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn"
            = link_to 'Delete', [project.namespace.becomes(Namespace), project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-remove"
          .title
            = link_to [:admin, project.namespace.becomes(Namespace), project] do
              .dash-project-avatar
                .avatar-container.s40
                  = project_icon(project, alt: '', class: 'avatar project-avatar s40')
              %span.project-full-name
                %span.namespace-name
                  - if project.namespace
                    = project.namespace.human_name
                    \/
                %span.project-name.filter-title
                  = project.name

          - if project.description.present?
            .description
              = markdown_field(project, :description)

    = paginate @projects, theme: 'gitlab'
  - else
    .nothing-here-block No projects found