BigW Consortium Gitlab

index.html.haml 1.16 KB
Newer Older
1 2 3 4 5
%h3.page_title
  Teams
  %small
    simple Teams description

6
  = link_to 'New Team', new_admin_team_path, class: "btn btn-small pull-right"
7 8 9 10
  %br

= form_tag admin_teams_path, method: :get, class: 'form-inline' do
  = text_field_tag :name, params[:name], class: "xlarge"
11
  = submit_tag "Search", class: "btn submit btn-primary"
12 13 14 15 16 17 18

%table
  %thead
    %tr
      %th
        Name
        %i.icon-sort-down
Andrew8xx8 committed
19
      %th Description
20 21 22 23 24 25 26 27 28 29
      %th Path
      %th Projects
      %th Members
      %th Owner
      %th.cred Danger Zone!

  - @teams.each do |team|
    %tr
      %td
        %strong= link_to team.name, admin_team_path(team)
30
      %td= truncate team.description
31 32 33 34
      %td= team.path
      %td= team.projects.count
      %td= team.members.count
      %td
35 36 37 38
        - if team.owner
          = link_to team.owner.name, admin_user_path(team.owner)
        - else
          (deleted)
39
      %td.bgred
Andrew8xx8 committed
40
        = link_to 'Edit', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn btn-small"
41
        = link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
42

43
= paginate @teams, theme: "admin"