_projects.html.haml 767 Bytes
Newer Older
1
.panel.panel-default
2
  .panel-heading
3
    Projects (#{projects.count})
4
    - if can? current_user, :create_projects, @group
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5
      .panel-head-actions
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
    - if projects.blank?
Marc Radulescu's avatar
Marc Radulescu committed
11
      .nothing-here-block This group 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
19
          %span.str-truncated
            %span.project-name
              = truncate(project.name, length: 25)
randx's avatar
randx committed
20
          %span.arrow
21
            %i.icon-angle-right