2013-01-24 04:43:09 -05:00
|
|
|
.ui-box
|
2013-07-13 13:36:21 -04:00
|
|
|
.title.clearfix
|
2013-12-30 19:50:36 -05:00
|
|
|
= search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
|
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-08-27 06:11:05 -04:00
|
|
|
= link_to new_group_path, class: "btn btn-new" do
|
2012-10-09 02:46:20 -04:00
|
|
|
%i.icon-plus
|
2013-08-27 06:11:05 -04:00
|
|
|
New group
|
2013-07-03 13:10:27 -04:00
|
|
|
%ul.well-list.dash-list
|
2012-10-02 12:37:53 -04:00
|
|
|
- groups.each do |group|
|
2013-07-09 13:52:06 -04:00
|
|
|
%li.group-row
|
2012-11-23 13:31:09 -05:00
|
|
|
= link_to group_path(id: group.path), class: dom_class(group) do
|
2014-01-28 03:51:18 -05:00
|
|
|
= image_tag group_icon(group.path), class: "avatar s24"
|
2013-07-13 02:55:46 -04:00
|
|
|
%span.group-name.filter-title
|
2013-03-14 07:12:11 -04:00
|
|
|
= truncate(group.name, length: 35)
|
|
|
|
%span.arrow
|
2013-07-09 13:52:06 -04:00
|
|
|
%i.icon-angle-right
|
2013-03-10 05:57:14 -04:00
|
|
|
- if groups.blank?
|
|
|
|
%li
|
2014-02-20 06:51:22 -05:00
|
|
|
.nothing-here-block You have no groups yet.
|