show.html.haml 2.07 KB
Newer Older
1
= render "home_panel"
2

3
.row
4
  .span9
5
    = render "events/event_last_push", event: @last_push
6
    = render 'shared/event_filter'
7
    .content_list
8
    .loading.hide
9
  .span3.project-side
10 11 12
    .clearfix
      - if @project.forked_from_project
        .alert.alert-success
13
          %i.icon-code-fork.project-fork-icon
14
          Forked from:
15
          %br
16 17 18 19 20
          = link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project)
      - unless @project.empty_repo?
        - if current_user && can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace
          - if current_user.already_forked?(@project)
            = link_to project_path(current_user.fork_of(@project)), class: 'btn btn-block' do
21 22
              %i.icon-compass
              Go to fork
23 24 25 26
          - else
            = link_to fork_project_path(@project), title: "Fork", class: "btn btn-block", method: "POST" do
              %i.icon-code-fork
              Fork repository
27

28 29 30 31
        - if can? current_user, :download_code, @project
          = link_to archive_project_repository_path(@project), class: "btn btn-block" do
            %i.icon-download-alt
            %span Download
32 33
          = link_to project_compare_index_path(@project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do
            Compare code
34 35 36 37 38 39

        - if @repository.readme
          - readme = @repository.readme
          = link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do
            = readme.name

40
    .prepend-top-10
41
      %p
42
        %span.light Created on
43 44 45 46 47 48 49
        #{@project.created_at.stamp('Aug 22, 2013')}
      %p
        %span.light Owned by
        - if @project.group
          #{link_to @project.group.name, @project.group} Group
        - else
          #{link_to @project.owner_name, @project.owner}
50

51 52 53 54 55

      - if @project.gitlab_ci?
        %hr
        = link_to @project.gitlab_ci_service.builds_path do
          = image_tag @project.gitlab_ci_service.status_img_path, alt: "build status"