index.html.haml 1.0 KB
Newer Older
R
randx 已提交
1
%h3.page_title
D
Dmitriy Zaporozhets 已提交
2
  Projects
3
  = link_to 'New Project', new_admin_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 7
  = text_field_tag :name, params[:name], class: "xlarge"
  = submit_tag "Search", class: "btn submit primary"
R
randx 已提交
8

9
%table.admin-table
G
gitlabhq 已提交
10
  %thead
G
gitlabhq 已提交
11 12 13
    %th Name
    %th Path
    %th Team Members
14
    %th Post Receive
G
gitlabhq 已提交
15
    %th Last Commit
16 17
    %th Edit
    %th.cred Danger Zone!
G
gitlabhq 已提交
18 19 20

  - @admin_projects.each do |project|
    %tr
G
gitlabhq 已提交
21
      %td= link_to project.name, [:admin, project]
G
gitlabhq 已提交
22 23
      %td= project.path
      %td= project.users_projects.count
24
      %td= check_box_tag :post_receive_file, 1, project.has_post_receive_file?, disabled: true
G
gitlabhq 已提交
25
      %td= last_commit(project)
26 27 28
      %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"
= paginate @admin_projects, theme: "admin"