BigW Consortium Gitlab

_home_panel.html.haml 1 KB
Newer Older
1
- empty_repo = @project.empty_repo?
Phil Hughes committed
2
.project-home-panel.text-center{ class: ("empty-project" if empty_repo) }
3
  %div{ class: container_class }
4
    = project_icon(@project, alt: @project.name, class: 'project-avatar avatar s70 avatar-tile')
Phil Hughes committed
5 6 7 8
    %h1.project-title
      = @project.name
      %span.visibility-icon.has-tooltip{data: { container: 'body' }, title: visibility_icon_description(@project)}
        = visibility_level_icon(@project.visibility_level, fw: false)
9

10 11 12
    .project-home-desc
      - if @project.description.present?
        = markdown(@project.description, pipeline: :description)
13

14 15 16 17 18
      - if forked_from_project = @project.forked_from_project
        %p
          Forked from
          = link_to project_path(forked_from_project) do
            = forked_from_project.namespace.try(:name)
19

Phil Hughes committed
20 21 22 23
    .project-repo-buttons.project-action-buttons
      .count-buttons
        = render 'projects/buttons/star'
        = render 'projects/buttons/fork'
24

Phil Hughes committed
25 26
      .project-clone-holder
        = render "shared/clone_panel"