+9
-8
appview/pages/templates/repo/new.html
+9
-8
appview/pages/templates/repo/new.html
···
7
7
<div class="p-6 bg-white drop-shadow-sm rounded">
8
8
<form hx-post="/repo/new" class="space-y-12" hx-swap="none">
9
9
<div class="space-y-2">
10
-
<label for="name" class="block uppercase font-bold text-sm">Repository name</label>
10
+
<label for="name" class="-mb-1">Repository name</label>
11
11
<input
12
12
type="text"
13
13
id="name"
···
17
17
/>
18
18
<p class="text-sm text-gray-500">All repositories are publicly visible.</p>
19
19
20
-
<label for="branch" class="block uppercase font-bold text-sm">Default branch</label>
20
+
<label for="branch">Default branch</label>
21
21
<input
22
22
type="text"
23
23
id="branch"
···
27
27
class="w-full max-w-md"
28
28
/>
29
29
30
-
<label for="description" class="block uppercase font-bold text-sm">Description</label>
30
+
<label for="description">Description</label>
31
31
<input
32
32
type="text"
33
33
id="description"
···
37
37
</div>
38
38
39
39
<fieldset class="space-y-3">
40
-
<legend class="uppercase font-bold text-sm">Select a knot</legend>
40
+
<legend>Select a knot</legend>
41
41
<div class="space-y-2">
42
+
<div class="flex flex-col">
42
43
{{ range .Knots }}
43
-
<div>
44
-
<label class="inline-flex items-center">
44
+
<div class="flex items-center">
45
45
<input
46
46
type="radio"
47
47
name="domain"
48
48
value="{{ . }}"
49
49
class="mr-2"
50
+
id="domain-{{ . }}"
50
51
/>
51
52
<span>{{ . }}</span>
52
-
</label>
53
-
</div>
53
+
</div>
54
54
{{ else }}
55
55
<p>No knots available.</p>
56
56
{{ end }}
57
+
</div>
57
58
</div>
58
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>
59
60
</fieldset>
+14
-9
appview/pages/templates/repo/pulls/new.html
+14
-9
appview/pages/templates/repo/pulls/new.html
···
1
1
{{ define "title" }}new pull | {{ .RepoInfo.FullName }}{{ end }}
2
2
3
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>
4
16
<form
5
17
hx-post="/{{ .RepoInfo.FullName }}/pulls/new"
6
18
class="mt-6 space-y-6"
···
17
29
</p>
18
30
<select
19
31
name="targetBranch"
20
-
class="p-1 border border-gray-200 bg-white"
32
+
class="p-1 mb-2 border border-gray-200 bg-white"
21
33
>
22
34
<option disabled selected>select a branch</option>
23
35
{{ range .Branches }}
···
26
38
</option>
27
39
{{ end }}
28
40
</select>
29
-
</div>
30
-
<div>
31
41
<label for="body">add a description</label>
32
42
<textarea
33
43
name="body"
···
44
54
id="patch"
45
55
rows="10"
46
56
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']"
57
+
placeholder="Paste your git diff output here."
52
58
></textarea>
53
-
<div id="pull-validate"></div>
54
59
</div>
55
60
</div>
56
61
<div>