Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « teams « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9ac54594521cd8624839d2e9e430a6c92921f502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%h3.page_title
  Teams
  %small
    list of all teams

  = link_to 'New Team', new_team_path, class: "btn small right"
  %br

= form_tag search_teams_path, method: :get, class: 'form-inline' do
  = text_field_tag :name, params[:name], class: "xlarge"
  = submit_tag "Search", class: "btn submit primary"

%table.teams_list
  %thead
    %tr
      %th
        Name
        %i.icon-sort-down
      %th Path
      %th Projects
      %th Members
      %th Owner
      %th

  - @teams.each do |team|
    %tr
      %td
        %strong= link_to team.name, team_path(team)
      %td= team.path
      %td= link_to team.projects.count, team_projects_path(team)
      %td= link_to team.members.count, team_members_path(team)
      %td= link_to team.owner.name, team_member_path(team, team.owner)
      %td
        - if current_user.can?(:manage_user_team, team)
          - if team.owner == current_user
            = link_to "Destroy", team_path(team), method: :delete, confirm: "You are shure?", class: "danger btn small right"
          = link_to "Edit", edit_team_path(team), class: "btn small right"