gitlabhq/app/views/admin/projects/index.html.haml

29 lines
1,001 B
Plaintext
Raw Normal View History

%h3
2012-02-11 18:56:18 +01:00
Projects
= link_to 'New Project', new_admin_project_path, class: "btn small right"
2012-04-13 07:12:34 +02:00
%br
= form_tag admin_projects_path, method: :get do
= text_field_tag :name, params[:name], class: "xlarge"
= submit_tag "Search", class: "btn submit primary"
2012-06-21 17:54:57 +02:00
%table.admin-table
2011-11-02 16:21:17 +01:00
%thead
2011-10-08 23:36:38 +02:00
%th Name
%th Path
%th Team Members
%th Post Receive
2011-10-08 23:36:38 +02:00
%th Last Commit
%th Edit
%th.cred Danger Zone!
2011-10-08 23:36:38 +02:00
- @admin_projects.each do |project|
%tr
2011-10-14 23:12:02 +02:00
%td= link_to project.name, [:admin, project]
2011-10-08 23:36:38 +02:00
%td= project.path
%td= project.users_projects.count
%td= check_box_tag :post_receive_file, 1, project.has_post_receive_file?, disabled: true
2011-10-08 23:36:38 +02:00
%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"