index.html.haml 696 字节
Newer Older
D
Dmitriy Zaporozhets 已提交
1 2 3 4 5
%h3 
  Projects
  = link_to 'New Project', new_admin_project_path, :class => "btn small right"
%hr
%table.zebra-striped
G
gitlabhq 已提交
6
  %thead
G
gitlabhq 已提交
7 8 9 10 11 12 13 14 15
    %th Name
    %th Path
    %th Team Members
    %th Last Commit
    %th
    %th

  - @admin_projects.each do |project|
    %tr
G
gitlabhq 已提交
16
      %td= link_to project.name, [:admin, project]
G
gitlabhq 已提交
17 18 19
      %td= project.path
      %td= project.users_projects.count
      %td= last_commit(project)
D
Dmitriy Zaporozhets 已提交
20 21
      %td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}", :class => "btn small"
      %td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete, :class => "btn small danger"
R
randx 已提交
22
= paginate @admin_projects, :theme => "admin"