_projects.html.haml 791 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
skv's avatar
skv committed
15
          = visibility_level_icon(project.visibility_level)
16
17
          %span.project-name
            = truncate(project.name, length: 25)
randx's avatar
randx committed
18
          %span.arrow
19
20
21
22
            %i.icon-angle-right
          %span.last-activity
            %span Last activity:
            %span.date= project_last_activity(project)