BigW Consortium Gitlab

_home_panel.html.haml 1.51 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
    .avatar-container.s70.project-avatar
5
      = project_icon(@project, alt: @project.name, class: 'avatar s70 avatar-tile')
Phil Hughes committed
6 7
    %h1.project-title
      = @project.name
8
      %span.visibility-icon.has-tooltip{ data: { container: 'body' }, title: visibility_icon_description(@project) }
Phil Hughes committed
9
        = visibility_level_icon(@project.visibility_level, fw: false)
10

11 12
    .project-home-desc
      - if @project.description.present?
13
        = markdown_field(@project, :description)
14

15 16 17 18 19
      - 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)
20

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

26 27 28 29
      %span.hidden-xs
        - if @project.feature_available?(:repository, current_user)
          .project-clone-holder
            = render "shared/clone_panel"
30

31
        - if current_user
32 33 34 35 36
          - if can?(current_user, :download_code, @project)
            = render 'projects/buttons/download', project: @project, ref: @ref
            = render 'projects/buttons/dropdown'
            = render 'projects/buttons/koding'

37
          = render 'shared/notifications/button', notification_setting: @notification_setting
38
          = render 'shared/members/access_request_buttons', source: @project