GitLab wurde erfolgreich aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Danke für Ihre Geduld.

index.html.haml 1.11 KB
Newer Older
randx's avatar
randx committed
1
%h3.page_title
2
  Projects (#{@projects.count})
3
  = link_to 'New Project', new_project_path, class: "btn small right"
randx's avatar
randx committed
4
%br
Cyril's avatar
Cyril committed
5
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
6
  = select_tag :namespace_id, namespaces_options(params[:namespace_id], :all), class: "chosen xlarge", prompt: "Project namespace"
7 8
  = text_field_tag :name, params[:name], class: "xlarge"
  = submit_tag "Search", class: "btn submit primary"
randx's avatar
randx committed
9

randx's avatar
randx committed
10
%table
gitlabhq's avatar
gitlabhq committed
11
  %thead
12 13 14
    %th
      Name
      %i.icon-sort-down
15
    %th Path
gitlabhq's avatar
gitlabhq committed
16 17
    %th Team Members
    %th Last Commit
18 19
    %th Edit
    %th.cred Danger Zone!
gitlabhq's avatar
gitlabhq committed
20

21
  - @projects.each do |project|
gitlabhq's avatar
gitlabhq committed
22
    %tr
23
      %td
24
        = link_to project.name_with_namespace, [:admin, project]
25 26
      %td
        %span.monospace= project.path_with_namespace + ".git"
gitlabhq's avatar
gitlabhq committed
27 28
      %td= project.users_projects.count
      %td= last_commit(project)
29 30
      %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"
31
= paginate @projects, theme: "admin"