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