summaryrefslogtreecommitdiff
path: root/app/views/dashboard/_groups.html.haml
blob: 5460cf56f22f98a70b630657d2658cbb033fa87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.panel.panel-default
  .panel-heading.clearfix
    = search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
    - if current_user.can_create_group?
      = link_to new_group_path, class: "btn btn-new pull-right" do
        %i.fa.fa-plus
        New group
  %ul.well-list.dash-list
    - groups.each do |group|
      %li.group-row
        = link_to group_path(id: group.path), class: dom_class(group) do
          = image_tag group_icon(group.path), class: "avatar s24"
          %span.group-name.filter-title
            = truncate(group.name, length: 35)
          %span.arrow
            %i.fa.fa-angle-right
    - if groups.blank?
      %li
        .nothing-here-block You have no groups yet.