summaryrefslogtreecommitdiff
path: root/app/views/admin/projects/index.html.haml
blob: 7218eebb62af947c19d9e4da01c04ae8f0e77656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%h3
  Projects
  = link_to 'New Project', new_admin_project_path, :class => "btn small right"
%br
= form_tag admin_projects_path, :method => :get do 
  = text_field_tag :name, params[:name], :class => "xlarge"
  = submit_tag "Search", :class => "btn submit primary"

%table.admin-table
  %thead
    %th Name
    %th Path
    %th Team Members
    %th Post Receive
    %th Last Commit
    %th Edit
    %th.cred Danger Zone!

  - @admin_projects.each do |project|
    %tr
      %td= link_to project.name, [:admin, project]
      %td= project.path
      %td= project.users_projects.count
      %td= check_box_tag :post_receive_file, 1, project.has_post_receive_file?, :disabled => true
      %td= last_commit(project)
      %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"