gitlabhq/app/views/admin/projects/index.html.haml
2012-11-23 07:31:09 +03:00

28 lines
925 B
Plaintext

= render 'admin/shared/projects_head'
%h3.page_title
Projects
= link_to 'New Project', new_project_path, class: "btn small right"
%br
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
= text_field_tag :name, params[:name], class: "xlarge"
= submit_tag "Search", class: "btn submit primary"
%table
%thead
%th Name
%th Path
%th Team Members
%th Last Commit
%th Edit
%th.cred Danger Zone!
- @projects.each do |project|
%tr
%td= link_to project.name, [:admin, project]
%td= project.path
%td= project.users_projects.count
%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 @projects, theme: "admin"