gitlabhq/app/views/admin/teams/index.html.haml

44 lines
1.2 KiB
Text
Raw Normal View History

2013-01-19 18:11:11 +01:00
%h3.page_title
Teams
%small
simple Teams description
2013-01-30 15:40:43 +01:00
= link_to 'New Team', new_admin_team_path, class: "btn btn-small pull-right"
2013-01-19 18:11:11 +01:00
%br
= form_tag admin_teams_path, method: :get, class: 'form-inline' do
= text_field_tag :name, params[:name], class: "xlarge"
2013-01-29 21:18:19 +01:00
= submit_tag "Search", class: "btn submit btn-primary"
2013-01-19 18:11:11 +01:00
%table
%thead
%tr
%th
Name
%i.icon-sort-down
2013-02-07 12:10:14 +01:00
%th Description
2013-01-19 18:11:11 +01:00
%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)
%td= truncate team.description
2013-01-19 18:11:11 +01:00
%td= team.path
%td= team.projects.count
%td= team.members.count
%td
- if team.owner
= link_to team.owner.name, admin_user_path(team.owner)
- else
(deleted)
2013-01-19 18:11:11 +01:00
%td.bgred
2013-02-07 12:10:14 +01:00
= link_to 'Edit', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn btn-small"
2013-01-29 21:29:21 +01:00
= link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
2013-01-19 18:11:11 +01:00
= paginate @teams, theme: "admin"