index.html.haml 1.0 KB
Newer Older
1
%h3
D
Dmitriy Zaporozhets 已提交
2 3
  Projects
  = link_to 'New Project', new_admin_project_path, :class => "btn small right"
R
randx 已提交
4
%br
R
randx 已提交
5 6 7 8
= form_tag admin_projects_path, :method => :get do 
  = text_field_tag :name, params[:name], :class => "xlarge"
  = submit_tag "Search", :class => "btn submit primary"

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)
D
Dmitriy Zaporozhets 已提交
26
      %td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}", :class => "btn small"
27
      %td.bgred= link_to 'Destroy', [:admin, project], :confirm => "REMOVE #{project.name}? Are you sure?", :method => :delete, :class => "btn small danger"
R
randx 已提交
28
= paginate @admin_projects, :theme => "admin"