summaryrefslogtreecommitdiff
path: root/app/views/projects/_home_panel.html.haml
blob: 873b3045ea99bd5da260ae32317ea02f3c54884c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- empty_repo = @project.empty_repo?
.project-home-panel.text-center{ class: ("empty-project" if empty_repo) }
  .limit-container-width{ class: container_class }
    .avatar-container.s70.project-avatar
      = project_icon(@project, alt: @project.name, class: 'avatar s70 avatar-tile')
    %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)

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

      - if forked_from_project = @project.forked_from_project
        %p
          #{ s_('ForkedFromProjectPath|Forked from') }
          = link_to project_path(forked_from_project) do
            = forked_from_project.namespace.try(:name)

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

      %span.hidden-xs
        - if can?(current_user, :download_code, @project)
          .project-clone-holder
            = render "shared/clone_panel"

        - if current_user
          - if can?(current_user, :download_code, @project)
            = render 'projects/buttons/download', project: @project, ref: @ref
            = render 'projects/buttons/dropdown'
            = render 'projects/buttons/koding'

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