2013-01-24 09:43:09 +00:00
|
|
|
.ui-box
|
2013-07-13 17:36:21 +00:00
|
|
|
.title.clearfix
|
2013-07-03 17:10:27 +00:00
|
|
|
= search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter'
|
2012-10-09 06:46:20 +00:00
|
|
|
- if current_user.can_create_group?
|
2013-01-30 14:40:43 +00:00
|
|
|
%span.pull-right
|
2013-07-03 17:10:27 +00:00
|
|
|
= link_to new_group_path, class: "btn" do
|
2012-10-09 06:46:20 +00:00
|
|
|
%i.icon-plus
|
|
|
|
New Group
|
2013-07-03 17:10:27 +00:00
|
|
|
%ul.well-list.dash-list
|
2012-10-02 16:37:53 +00:00
|
|
|
- groups.each do |group|
|
2013-07-09 17:52:06 +00:00
|
|
|
%li.group-row
|
2012-11-23 18:31:09 +00:00
|
|
|
= link_to group_path(id: group.path), class: dom_class(group) do
|
2013-07-13 06:55:46 +00:00
|
|
|
%span.group-name.filter-title
|
2013-03-14 11:12:11 +00:00
|
|
|
= truncate(group.name, length: 35)
|
|
|
|
%span.arrow
|
2013-07-09 17:52:06 +00:00
|
|
|
%i.icon-angle-right
|
|
|
|
%span.owner-info
|
|
|
|
%span Owner:
|
|
|
|
%span.owner= group.owner_name
|
2013-03-10 09:57:14 +00:00
|
|
|
- if groups.blank?
|
|
|
|
%li
|
|
|
|
%h3.nothing_here_message You have no groups yet.
|