projects.html.haml 1.86 KB
Newer Older
1 2
%h3.page-title
  My Projects
3

4
%p.light
5
  All projects you have access to are listed here. Public projects are not included here unless you are a member
6
%hr
7 8 9 10 11 12 13
.side-filters
  = render "projects_filter"
.dash-projects
  %ul.bordered-list.my-projects.top-list
    - @projects.each do |project|
      %li.my-project-row
        %h4.project-title
14 15
          .project-avatar
            = project_icon(project.to_param, alt: '', class: 'avatar s60')
16 17 18 19
          .project-access-icon
            = visibility_level_icon(project.visibility_level)
          = link_to project_path(project), class: dom_class(project) do
            = project.name_with_namespace
20

21 22 23 24 25 26
          - if project.forked_from_project
             
            %small
              %i.fa.fa-code-fork
              Forked from:
              = link_to project.forked_from_project.name_with_namespace, project_path(project.forked_from_project)
27

28
          - if current_user.can_leave_project?(project)
29
            .pull-right
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
              = link_to leave_project_team_members_path(project), data: { confirm: "Leave project?"}, method: :delete, remote: true, class: "btn-tiny btn remove-row", title: 'Leave project' do
                %i.fa.fa-sign-out
                Leave

        .project-info
          .pull-right
            - if project.archived?
              %span.label
                %i.fa.fa-archive
                Archived
            - project.tags.each do |tag|
              %span.label.label-info
                %i.fa.fa-tag
                = tag.name
          - if project.description.present?
            %p= truncate project.description, length: 100
          .last-activity
            %span.light Last activity:
            %span.date= project_last_activity(project)
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
49

50

51 52 53 54 55
      - if @projects.blank?
        %li
          .nothing-here-block There are no projects here.
  .bottom
    = paginate @projects, theme: "gitlab"
56