2013-01-24 10:43:09 +01:00
|
|
|
.ui-box
|
2013-01-04 22:35:31 +01:00
|
|
|
%h5.title
|
2012-10-02 18:37:53 +02:00
|
|
|
Groups
|
2013-04-01 20:37:39 +02:00
|
|
|
%span.light
|
2012-10-02 18:37:53 +02:00
|
|
|
(#{groups.count})
|
2012-10-09 08:46:20 +02:00
|
|
|
- if current_user.can_create_group?
|
2013-01-30 15:40:43 +01:00
|
|
|
%span.pull-right
|
2013-04-01 20:37:39 +02:00
|
|
|
= link_to new_group_path, class: "btn btn-small" do
|
2012-10-09 08:46:20 +02:00
|
|
|
%i.icon-plus
|
|
|
|
New Group
|
2012-12-18 04:14:05 +01:00
|
|
|
%ul.well-list
|
2012-10-02 18:37:53 +02:00
|
|
|
- groups.each do |group|
|
2012-12-18 04:14:05 +01:00
|
|
|
%li
|
2012-11-23 19:31:09 +01:00
|
|
|
= link_to group_path(id: group.path), class: dom_class(group) do
|
2013-03-14 12:12:11 +01:00
|
|
|
%strong.well-title
|
|
|
|
= truncate(group.name, length: 35)
|
|
|
|
%span.arrow
|
|
|
|
→
|
|
|
|
%span.last_activity
|
|
|
|
%strong Owner:
|
|
|
|
%span= group.owner_name
|
2013-03-10 10:57:14 +01:00
|
|
|
- if groups.blank?
|
|
|
|
%li
|
|
|
|
%h3.nothing_here_message You have no groups yet.
|