Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.html.haml « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 74b07395650e9e3654c527b234fe78311d186776 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
- if current_user && can?(current_user, :download_code, @project)
  = render 'shared/no_ssh'
  = render 'shared/no_password'

= render "home_panel"

- readme = @repository.readme
%ul.nav.nav-tabs
  %li.active
    = link_to '#tab-activity', 'data-toggle' => 'tab' do
      Activity
  - if readme
    %li
      = link_to '#tab-readme', 'data-toggle' => 'tab' do
        Readme
  .project-home-links
    - unless @project.empty_repo?
      = link_to pluralize(number_with_delimiter(@repository.commit_count), 'commit'), namespace_project_commits_path(@project.namespace, @project, @ref || @repository.root_ref)
      = link_to pluralize(number_with_delimiter(@repository.branch_names.count), 'branch'), namespace_project_branches_path(@project.namespace, @project)
      = link_to pluralize(number_with_delimiter(@repository.tag_names.count), 'tag'), namespace_project_tags_path(@project.namespace, @project)
      %span.light.prepend-left-20= repository_size

.tab-content
  .tab-pane.active#tab-activity
    .row
      = link_to '#aside', class: 'show-aside' do
        %i.fa.fa-angle-left
      %section.col-md-9
        = render "events/event_last_push", event: @last_push
        = render 'shared/event_filter'
        .content_list
        = spinner
      %aside.col-md-3.project-side
        .clearfix
          - if @project.archived?
            .alert.alert-warning
              %h4
                %i.fa.fa-exclamation-triangle
                Archived project!
              %p Repository is read-only

          - if @project.forked_from_project
            .well
              %i.fa.fa-code-fork.project-fork-icon
              Forked from:
              %br
              = link_to @project.forked_from_project.name_with_namespace, namespace_project_path(@project.namespace, @project.forked_from_project)

          - unless @project.empty_repo?
            = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do
              Compare code

            - if @repository.version
              - version = @repository.version
              = link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, version.name)), class: 'btn btn-block' do
                Version:
                %span.count
                  = @repository.blob_by_oid(version.id).data

        .prepend-top-10
          %p
            %span.light Created on
            #{@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}

          - @project.ci_services.each do |ci_service|
            - if ci_service.active? && ci_service.respond_to?(:builds_path)
              - if ci_service.respond_to?(:status_img_path)
                = link_to ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink' do
                  = image_tag ci_service.status_img_path, alt: "build status"
              - else
                %span.light CI provided by
                = link_to ci_service.title, ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink'

  - if readme
    .tab-pane#tab-readme
      %article.readme-holder#README
        = link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)) do
          %h4.readme-file-title
            %i.fa.fa-file
            = readme.name
        .wiki
          = render_readme(readme)