OSDN Git Service

added group avatars
[wvm/gitlab.git] / app / views / dashboard / _groups.html.haml
1 .ui-box
2   .title.clearfix
3     = search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
4     - if current_user.can_create_group?
5       %span.pull-right
6         = link_to new_group_path, class: "btn btn-new" do
7           %i.icon-plus
8           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           = image_tag group_icon(group.path), class: "avatar s32"
14           %span.group-name.filter-title
15             = truncate(group.name, length: 35)
16           %span.arrow
17             %i.icon-angle-right
18     - if groups.blank?
19       %li
20         %h3.nothing_here_message You have no groups yet.