2013-01-24 04:43:09 -05:00
|
|
|
.ui-box
|
2013-01-04 16:35:31 -05:00
|
|
|
%h5.title
|
2012-10-02 12:37:53 -04:00
|
|
|
Groups
|
|
|
|
%small
|
|
|
|
(#{groups.count})
|
2012-10-09 02:46:20 -04:00
|
|
|
- if current_user.can_create_group?
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.pull-right
|
2013-01-29 15:29:21 -05:00
|
|
|
= link_to new_group_path, class: "btn btn-tiny info" do
|
2012-10-09 02:46:20 -04:00
|
|
|
%i.icon-plus
|
|
|
|
New Group
|
2012-12-17 22:14:05 -05:00
|
|
|
%ul.well-list
|
2012-10-02 12:37:53 -04:00
|
|
|
- groups.each do |group|
|
2012-12-17 22:14:05 -05:00
|
|
|
%li
|
2012-11-23 13:31:09 -05:00
|
|
|
= link_to group_path(id: group.path), class: dom_class(group) do
|
2012-12-17 22:14:05 -05:00
|
|
|
%strong.well-title= truncate(group.name, length: 35)
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.pull-right.light
|
2013-01-24 04:43:09 -05:00
|
|
|
- if group.owner == current_user
|
|
|
|
%i.icon-wrench
|