gitlab-org--gitlab-foss/app/views/dashboard/_teams.html.haml
2013-04-01 21:37:39 +03:00

23 lines
705 B
Text

.ui-box.teams-box
%h5.title
Teams
%span.light
(#{teams.count})
%span.pull-right
= link_to new_team_path, class: "btn btn-small" do
%i.icon-plus
New Team
%ul.well-list
- teams.each do |team|
%li
= link_to team_path(id: team.path), class: dom_class(team) do
%strong.well-title= truncate(team.name, length: 35)
%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
- if teams.blank?
%li
%h3.nothing_here_message You have no teams yet.