summaryrefslogtreecommitdiff
path: root/app/views/projects/forks/new.html.haml
blob: 5a6c46f320885bd11a5d489780f52cc702450756 (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
%h3.page-title Fork project
%p.lead
  Click to fork the project to a user or group
%hr

.fork-namespaces
  - @namespaces.in_groups_of(6, false) do |group|
    .row
      - group.each do |namespace|
        .col-md-2.col-sm-3
          - if fork = namespace.find_fork_of(@project)
            .thumbnail.fork-exists-thumbnail
              = link_to project_path(fork), title: "Visit project fork", class: 'has_tooltip' do
                = image_tag namespace_icon(namespace, 200)
                .caption
                  %h4=namespace.human_name
                  %p
                    = namespace.path
          - else
            .thumbnail.fork-thumbnail
              = link_to namespace_project_fork_path(@project.namespace, @project, namespace_key: namespace.id), title: "Fork here", method: "POST", class: 'has_tooltip' do
                = image_tag namespace_icon(namespace, 200)
                .caption
                  %h4=namespace.human_name
                  %p
                    = namespace.path

  %p.light
    Fork is a copy of a project repository.
    %br
    Forking a repository allows you to do changes without affecting the original project.

.save-project-loader.hide
  .center
    %h2
      %i.fa.fa-spinner.fa-spin
      Forking repository
    %p Please wait a moment, this page will automatically refresh when ready.