gitlab-org--gitlab-foss/app/views/dashboard/_teams.html.haml

21 lines
618 B
Text
Raw Normal View History

2013-01-25 04:36:15 -05:00
.ui-box.teams-box
2013-01-19 12:33:38 -05:00
%h5.title
Teams
2013-01-19 12:33:38 -05:00
%small
(#{@teams.count})
2013-01-30 09:40:43 -05:00
%span.pull-right
2013-01-29 15:29:21 -05:00
= link_to new_team_path, class: "btn btn-tiny info" do
2013-01-19 12:33:38 -05:00
%i.icon-plus
New Team
%ul.well-list
- @teams.each do |team|
2013-01-19 12:33:38 -05:00
%li
= link_to team_path(id: team.path), class: dom_class(team) do
%strong.well-title= truncate(team.name, length: 35)
2013-01-30 09:40:43 -05:00
%span.pull-right.light
- if team.owner == current_user
%i.icon-wrench
- tm = current_user.user_team_user_relationships.find_by_user_team_id(team.id)
- if tm
= tm.access_human