index.html.haml 652 字节
Newer Older
G
gitlabhq 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
%table
  %tr
    %th Name
    %th Code
    %th Path
    %th Team Members
    %th Last Commit
    %th
    %th
    %th

  - @admin_projects.each do |project|
    %tr
G
gitlabhq 已提交
14
      %td= link_to project.name, [:admin, project]
G
gitlabhq 已提交
15 16 17 18 19 20 21 22 23 24 25 26
      %td= project.code
      %td= project.path
      %td= project.users_projects.count
      %td= last_commit(project)
      %td= link_to 'Show', [:admin, project]
      %td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}"
      %td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete

%br

= paginate @admin_projects
= link_to 'New Project', new_admin_project_path