index.html.haml 1.2 KB
Newer Older
1
= render 'admin/shared/projects_head'
R
randx 已提交
2
%h3.page_title
D
Dmitriy Zaporozhets 已提交
3
  Projects
4
  = link_to 'New Project', new_project_path, class: "btn small right"
R
randx 已提交
5
%br
C
Cyril 已提交
6
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
7
  = select_tag :namespace_id, namespaces_options(params[:namespace_id], :all), class: "chosen xlarge", include_blank: true
8 9
  = text_field_tag :name, params[:name], class: "xlarge"
  = submit_tag "Search", class: "btn submit primary"
R
randx 已提交
10

R
randx 已提交
11
%table
G
gitlabhq 已提交
12
  %thead
G
gitlabhq 已提交
13
    %th Name
14
    %th Project
G
gitlabhq 已提交
15 16
    %th Team Members
    %th Last Commit
17 18
    %th Edit
    %th.cred Danger Zone!
G
gitlabhq 已提交
19

20
  - @projects.each do |project|
G
gitlabhq 已提交
21
    %tr
22 23 24 25 26 27 28
      %td
        - if project.namespace
          = link_to project.namespace.human_name, [:admin, project]
          →
        = link_to project.name, [:admin, project]
      %td
        %span.monospace= project.path_with_namespace + ".git"
G
gitlabhq 已提交
29 30
      %td= project.users_projects.count
      %td= last_commit(project)
31 32
      %td= link_to 'Edit', edit_admin_project_path(project), id: "edit_#{dom_id(project)}", class: "btn small"
      %td.bgred= link_to 'Destroy', [:admin, project], confirm: "REMOVE #{project.name}? Are you sure?", method: :delete, class: "btn small danger"
33
= paginate @projects, theme: "admin"