summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/projects/forks/new/components/app.vue
blob: 02b357d389b80c2d2d19ae0222118e7b9d87555c (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
<script>
import ForkForm from './fork_form.vue';

export default {
  components: {
    ForkForm,
  },
  props: {
    forkIllustration: {
      type: String,
      required: true,
    },
    endpoint: {
      type: String,
      required: true,
    },
    projectFullPath: {
      type: String,
      required: true,
    },
    projectId: {
      type: String,
      required: true,
    },
    projectName: {
      type: String,
      required: true,
    },
    projectPath: {
      type: String,
      required: true,
    },
    projectDescription: {
      type: String,
      required: true,
    },
    projectVisibility: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <div class="row gl-mt-5">
    <div class="col-lg-3">
      <img :src="forkIllustration" />
      <h4 class="">{{ s__('ForkProject|Fork project') }}</h4>
      <p>
        {{ s__('ForkProject|A fork is a copy of a project.') }}
        <br />
        {{
          s__(
            'ForkProject|Forking a repository allows you to make changes without affecting the original project.',
          )
        }}
      </p>
    </div>
    <div class="col-lg-9">
      <fork-form
        :endpoint="endpoint"
        :project-full-path="projectFullPath"
        :project-id="projectId"
        :project-name="projectName"
        :project-path="projectPath"
        :project-description="projectDescription"
        :project-visibility="projectVisibility"
      />
    </div>
  </div>
</template>