_groups.html.haml 750 Bytes
Newer Older
1
.ui-box
2
  .title.clearfix
3
    = search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter'
4
    - if current_user.can_create_group?
5
      %span.pull-right
6
        = link_to new_group_path, class: "btn" do
7 8
          %i.icon-plus
          New Group
9
  %ul.well-list.dash-list
10
    - groups.each do |group|
11
      %li.group-row
12
        = link_to group_path(id: group.path), class: dom_class(group) do
13
          %span.group-name.filter-title
14 15
            = truncate(group.name, length: 35)
          %span.arrow
16 17 18 19
            %i.icon-angle-right
          %span.owner-info
            %span Owner:
            %span.owner= group.owner_name
20 21 22
    - if groups.blank?
      %li
        %h3.nothing_here_message You have no groups yet.