BigW Consortium Gitlab

_home_panel.html.haml 954 Bytes
Newer Older
1
- empty_repo = @project.empty_repo?
2
.project-home-panel.clearfix{:class => ("empty-project" if empty_repo)}
3
  .project-identicon-holder
4 5 6 7 8 9 10
    = project_icon(@project, alt: '', class: 'project-avatar avatar s90')
  .lead
    - if @project.description.present?
      = markdown(@project.description, pipeline: :description)


  .project-repo-buttons
11 12
    = render 'projects/buttons/star'

13
    - unless empty_repo
14 15 16 17 18 19 20 21
      = render 'projects/buttons/fork'

      - if forked_from_project = @project.forked_from_project
        = link_to project_path(forked_from_project), class: 'btn' do
          = icon("code-fork fw")
          Forked from
          = forked_from_project.namespace.try(:name)

22
      - if can? current_user, :download_code, @project
23 24
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn', rel: 'nofollow' do
          %i.fa.fa-download
25 26

  = render "shared/clone_panel"