summaryrefslogtreecommitdiff
path: root/app/views/dashboard/_groups.html.haml
blob: 7f544406761afaf88de0c4a11e8aa960ad0c0764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.groups_box
  %h5.title
    Groups
    %small
      (#{groups.count})
    - 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
  %ul.well-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 Projects:
            %span= current_user.authorized_projects.where(namespace_id: group.id).count