_groups.html.haml 623 Bytes
Newer Older
randx's avatar
randx committed
1
.groups_box
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2
  %h5.title
3 4 5
    Groups
    %small
      (#{groups.count})
6 7 8 9 10
    - if current_user.can_create_group?
      %span.right
        = link_to new_admin_group_path, class: "btn very_small info" do
          %i.icon-plus
          New Group
11
  %ul.well-list
12
    - groups.each do |group|
13
      %li
14
        = link_to group_path(id: group.path), class: dom_class(group) do
15
          %strong.well-title= truncate(group.name, length: 35)
16 17 18 19
          %span.arrow
            →
          %span.last_activity
            %strong Projects:
20
            %span= current_user.authorized_projects.where(namespace_id: group.id).count