_projects.html.haml 915 Bytes
Newer Older
1
.ui-box
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2
  %h5.title
3
4
    Projects
    %small
5
      (#{@projects_count})
6
    - if current_user.can_create_project?
7
      %span.pull-right
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
8
        = link_to new_project_path, class: "btn btn-tiny info" do
9
10
          %i.icon-plus
          New Project
11

12
  %ul.well-list
13
    - projects.each do |project|
14
      %li
15
        = link_to project_path(project), class: dom_class(project) do
16
17
18
          - if project.namespace
            = project.namespace.human_name
            \/
19
          %strong.well-title
20
            = truncate(project.name, length: 25)
21
22
23
24
25
          %span.arrow
            →
          %span.last_activity
            %strong Last activity:
            %span= project_last_activity(project)
26
    - if projects.blank?
27
      %li
28
        %h3.nothing_here_message There are no projects here.
29
30
    - if @projects_count > 20
      %li.bottom
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
31
        %strong= link_to "show all projects", projects_dashboard_path