index.html.haml 1.1 KB
Newer Older
R
randx 已提交
1
%h3.page_title
D
Dmitriy Zaporozhets 已提交
2
  Projects
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
12 13 14
    %th
      Name
      %i.icon-sort-down
15
    %th Path
G
gitlabhq 已提交
16 17
    %th Team Members
    %th Last Commit
18 19
    %th Edit
    %th.cred Danger Zone!
G
gitlabhq 已提交
20

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