+9
-8
appview/pages/templates/repo/new.html
+9
-8
appview/pages/templates/repo/new.html
···
7
<div class="p-6 bg-white drop-shadow-sm rounded">
8
<form hx-post="/repo/new" class="space-y-12" hx-swap="none">
9
<div class="space-y-2">
10
-
<label for="name" class="block uppercase font-bold text-sm">Repository name</label>
11
<input
12
type="text"
13
id="name"
···
17
/>
18
<p class="text-sm text-gray-500">All repositories are publicly visible.</p>
19
20
-
<label for="branch" class="block uppercase font-bold text-sm">Default branch</label>
21
<input
22
type="text"
23
id="branch"
···
27
class="w-full max-w-md"
28
/>
29
30
-
<label for="description" class="block uppercase font-bold text-sm">Description</label>
31
<input
32
type="text"
33
id="description"
···
37
</div>
38
39
<fieldset class="space-y-3">
40
-
<legend class="uppercase font-bold text-sm">Select a knot</legend>
41
<div class="space-y-2">
42
{{ range .Knots }}
43
-
<div>
44
-
<label class="inline-flex items-center">
45
<input
46
type="radio"
47
name="domain"
48
value="{{ . }}"
49
class="mr-2"
50
/>
51
<span>{{ . }}</span>
52
-
</label>
53
-
</div>
54
{{ else }}
55
<p>No knots available.</p>
56
{{ end }}
57
</div>
58
<p class="text-sm text-gray-500">A knot hosts repository data. <a href="/knots" class="underline">Learn how to register your own knot.</a></p>
59
</fieldset>
···
7
<div class="p-6 bg-white drop-shadow-sm rounded">
8
<form hx-post="/repo/new" class="space-y-12" hx-swap="none">
9
<div class="space-y-2">
10
+
<label for="name" class="-mb-1">Repository name</label>
11
<input
12
type="text"
13
id="name"
···
17
/>
18
<p class="text-sm text-gray-500">All repositories are publicly visible.</p>
19
20
+
<label for="branch">Default branch</label>
21
<input
22
type="text"
23
id="branch"
···
27
class="w-full max-w-md"
28
/>
29
30
+
<label for="description">Description</label>
31
<input
32
type="text"
33
id="description"
···
37
</div>
38
39
<fieldset class="space-y-3">
40
+
<legend>Select a knot</legend>
41
<div class="space-y-2">
42
+
<div class="flex flex-col">
43
{{ range .Knots }}
44
+
<div class="flex items-center">
45
<input
46
type="radio"
47
name="domain"
48
value="{{ . }}"
49
class="mr-2"
50
+
id="domain-{{ . }}"
51
/>
52
<span>{{ . }}</span>
53
+
</div>
54
{{ else }}
55
<p>No knots available.</p>
56
{{ end }}
57
+
</div>
58
</div>
59
<p class="text-sm text-gray-500">A knot hosts repository data. <a href="/knots" class="underline">Learn how to register your own knot.</a></p>
60
</fieldset>
+14
-9
appview/pages/templates/repo/pulls/new.html
+14
-9
appview/pages/templates/repo/pulls/new.html
···
1
{{ define "title" }}new pull | {{ .RepoInfo.FullName }}{{ end }}
2
3
{{ define "repoContent" }}
4
<form
5
hx-post="/{{ .RepoInfo.FullName }}/pulls/new"
6
class="mt-6 space-y-6"
···
17
</p>
18
<select
19
name="targetBranch"
20
-
class="p-1 border border-gray-200 bg-white"
21
>
22
<option disabled selected>select a branch</option>
23
{{ range .Branches }}
···
26
</option>
27
{{ end }}
28
</select>
29
-
</div>
30
-
<div>
31
<label for="body">add a description</label>
32
<textarea
33
name="body"
···
44
id="patch"
45
rows="10"
46
class="w-full resize-y font-mono"
47
-
placeholder="Paste your git-format-patch output here."
48
-
hx-post="/pulls/validate"
49
-
hx-trigger="input changed delay:500ms"
50
-
hx-target="#patch-validation"
51
-
hx-include="[name='patch']"
52
></textarea>
53
-
<div id="pull-validate"></div>
54
</div>
55
</div>
56
<div>
···
1
{{ define "title" }}new pull | {{ .RepoInfo.FullName }}{{ end }}
2
3
{{ define "repoContent" }}
4
+
<section class="prose">
5
+
<p>
6
+
This is v1 of the pull request flow. Paste your patch in the form below.
7
+
Here are the steps to get you started:
8
+
<ul class="list-decimal pl-10 space-y-2 text-gray-700">
9
+
<li class="leading-relaxed">Clone this repository.</li>
10
+
<li class="leading-relaxed">Make your changes in your local repository.</li>
11
+
<li class="leading-relaxed">Grab the diff using <code class="bg-gray-100 px-1 py-0.5 rounded text-gray-800 font-mono text-sm">git diff</code>.</li>
12
+
<li class="leading-relaxed">Paste the diff output in the form below.</li>
13
+
</ul>
14
+
</p>
15
+
</section>
16
<form
17
hx-post="/{{ .RepoInfo.FullName }}/pulls/new"
18
class="mt-6 space-y-6"
···
29
</p>
30
<select
31
name="targetBranch"
32
+
class="p-1 mb-2 border border-gray-200 bg-white"
33
>
34
<option disabled selected>select a branch</option>
35
{{ range .Branches }}
···
38
</option>
39
{{ end }}
40
</select>
41
<label for="body">add a description</label>
42
<textarea
43
name="body"
···
54
id="patch"
55
rows="10"
56
class="w-full resize-y font-mono"
57
+
placeholder="Paste your git diff output here."
58
></textarea>
59
</div>
60
</div>
61
<div>