2013-01-25 10:36:15 +01:00
|
|
|
.ui-box.teams-box
|
2013-01-19 18:33:38 +01:00
|
|
|
%h5.title
|
2013-01-24 10:19:09 +01:00
|
|
|
Teams
|
2013-04-01 20:37:39 +02:00
|
|
|
%span.light
|
2013-03-10 10:57:14 +01:00
|
|
|
(#{teams.count})
|
2013-01-30 15:40:43 +01:00
|
|
|
%span.pull-right
|
2013-04-01 20:37:39 +02:00
|
|
|
= link_to new_team_path, class: "btn btn-small" do
|
2013-01-19 18:33:38 +01:00
|
|
|
%i.icon-plus
|
|
|
|
New Team
|
|
|
|
%ul.well-list
|
2013-03-10 10:57:14 +01:00
|
|
|
- teams.each do |team|
|
2013-01-19 18:33:38 +01: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 15:40:43 +01:00
|
|
|
%span.pull-right.light
|
2013-01-24 10:43:09 +01:00
|
|
|
- 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
|
2013-03-10 10:57:14 +01:00
|
|
|
- if teams.blank?
|
|
|
|
%li
|
|
|
|
%h3.nothing_here_message You have no teams yet.
|