_projects.html.haml 711 Bytes
Newer Older
1
.ui-box
2
  .title
3
    Projects (#{projects.count})
4
    - if can? current_user, :manage_group, @group
5
      %span.pull-right
6
        = link_to new_project_path(namespace_id: @group.id), class: "btn btn-new" do
7
          %i.icon-plus
8
          New project
9
  %ul.well-list
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
10
11
    - if projects.blank?
      %p.nothing_here_message This groups has no projects yet
randx's avatar
randx committed
12
    - projects.each do |project|
13
      %li.project-row
randx's avatar
randx committed
14
        = link_to project_path(project), class: dom_class(project) do
15
16
          .dash-project-access-icon
            = visibility_level_icon(project.visibility_level)
17
18
          %span.project-name
            = truncate(project.name, length: 25)
randx's avatar
randx committed
19
          %span.arrow
20
            %i.icon-angle-right