- empty_repo = @project.empty_repo?
.project-home-panel.cover-block.clearfix{:class => ("empty-project" if empty_repo)}
  %div{ class: (container_class) }
    .row
      .project-image-container
        = project_icon(@project, alt: '', class: 'project-avatar avatar s70')
      .project-info
        .cover-title.project-home-desc
          %h1
            = @project.name
            %span.visibility-icon.has-tooltip{data: { container: 'body' }, title: visibility_icon_description(@project)}
              = visibility_level_icon(@project.visibility_level, fw: false)

        - if @project.description.present?
          .cover-desc.project-home-desc
            = markdown(@project.description, pipeline: :description)

        - if forked_from_project = @project.forked_from_project
          .cover-desc
            Forked from
            = link_to project_path(forked_from_project) do
              = forked_from_project.namespace.try(:name)

        .project-repo-buttons.project-action-buttons
          .count-buttons
            = render 'projects/buttons/star'
            = render 'projects/buttons/fork'

          .project-clone-holder
            = render "shared/clone_panel"

      .project-repo-buttons.btn-group.project-right-buttons
        - if current_user
          = render 'shared/members/access_request_buttons', source: @project

        = render "projects/buttons/download"
        = render 'projects/buttons/dropdown'
        = render 'shared/notifications/button', notification_setting: @notification_setting

:javascript
  new Star();
