index.html.haml 1.1 KB
Newer Older
R
randx 已提交
1
%h3.page_title
2
  Projects (#{Project.count})
3
  = link_to 'New Project', new_project_path, class: "btn small right"
R
randx 已提交
4
%br
C
Cyril 已提交
5
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
6
  = select_tag :namespace_id, namespaces_options(params[:namespace_id], :all), class: "chosen xlarge", prompt: "Project namespace"
7 8
  = text_field_tag :name, params[:name], class: "xlarge"
  = submit_tag "Search", class: "btn submit primary"
R
randx 已提交
9

R
randx 已提交
10
%table
G
gitlabhq 已提交
11
  %thead
C
Cyril 已提交
12 13 14 15 16 17 18 19 20
    %tr
      %th
        Name
        %i.icon-sort-down
      %th Path
      %th Team Members
      %th Last Commit
      %th Edit
      %th.cred Danger Zone!
G
gitlabhq 已提交
21

22
  - @projects.each do |project|
G
gitlabhq 已提交
23
    %tr
24
      %td
25
        = link_to project.name_with_namespace, [:admin, project]
26 27
      %td
        %span.monospace= project.path_with_namespace + ".git"
G
gitlabhq 已提交
28 29
      %td= project.users_projects.count
      %td= last_commit(project)
30 31
      %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"
32
= paginate @projects, theme: "admin"