+1
appview/pages/pages.go
+1
appview/pages/pages.go
+1
-1
appview/pages/templates/fragments/pullActions.html
+1
-1
appview/pages/templates/fragments/pullActions.html
···
10
{{ $isPullAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Pull.OwnerDid) }}
11
{{ $isLastRound := eq $roundNumber $lastIdx }}
12
<div class="relative w-fit">
13
-
<div class="absolute left-8 -top-2 w-px h-2 bg-gray-300"></div>
14
<div id="actions-{{$roundNumber}}" class="flex flex-wrap gap-2">
15
<button
16
hx-get="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ $roundNumber }}/comment"
···
10
{{ $isPullAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Pull.OwnerDid) }}
11
{{ $isLastRound := eq $roundNumber $lastIdx }}
12
<div class="relative w-fit">
13
+
<div class="absolute left-8 -top-2 w-px h-2 bg-gray-300 dark:bg-gray-600"></div>
14
<div id="actions-{{$roundNumber}}" class="flex flex-wrap gap-2">
15
<button
16
hx-get="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ $roundNumber }}/comment"
+2
-2
appview/pages/templates/fragments/pullNewComment.html
+2
-2
appview/pages/templates/fragments/pullNewComment.html
···
1
{{ define "fragments/pullNewComment" }}
2
<div
3
id="pull-comment-card-{{ .RoundNumber }}"
4
+
class="bg-white dark:bg-gray-800 rounded drop-shadow-sm p-4 relative w-full flex flex-col gap-2">
5
+
<div class="text-sm text-gray-500 dark:text-gray-400">
6
{{ didOrHandle .LoggedInUser.Did .LoggedInUser.Handle }}
7
</div>
8
<form
+4
-4
appview/pages/templates/fragments/pullResubmit.html
+4
-4
appview/pages/templates/fragments/pullResubmit.html
···
1
{{ define "fragments/pullResubmit" }}
2
<div
3
id="resubmit-pull-card"
4
-
class="rounded relative border bg-amber-50 border-amber-200 px-6 py-2">
5
6
-
<div class="flex items-center gap-2 text-amber-500">
7
{{ i "pencil" "w-4 h-4" }}
8
<span class="font-medium">resubmit your patch</span>
9
</div>
10
11
-
<div class="mt-2 text-sm text-gray-700">
12
You can update this patch to address any reviews.
13
This will begin a new round of reviews,
14
but you'll still be able to view your previous submissions and feedback.
···
21
class="w-full flex flex-wrap gap-2">
22
<textarea
23
name="patch"
24
-
class="w-full p-2 mb-2 rounded border border-gray-200"
25
placeholder="Paste your updated patch here."
26
rows="15"
27
>{{.Pull.LatestPatch}}</textarea>
···
1
{{ define "fragments/pullResubmit" }}
2
<div
3
id="resubmit-pull-card"
4
+
class="rounded relative border bg-amber-50 dark:bg-amber-900 border-amber-200 dark:border-amber-500 px-6 py-2">
5
6
+
<div class="flex items-center gap-2 text-amber-500 dark:text-amber-50">
7
{{ i "pencil" "w-4 h-4" }}
8
<span class="font-medium">resubmit your patch</span>
9
</div>
10
11
+
<div class="mt-2 text-sm text-gray-700 dark:text-gray-200">
12
You can update this patch to address any reviews.
13
This will begin a new round of reviews,
14
but you'll still be able to view your previous submissions and feedback.
···
21
class="w-full flex flex-wrap gap-2">
22
<textarea
23
name="patch"
24
+
class="w-full p-2 mb-2"
25
placeholder="Paste your updated patch here."
26
rows="15"
27
>{{.Pull.LatestPatch}}</textarea>
+3
-3
appview/pages/templates/repo/blob.html
+3
-3
appview/pages/templates/repo/blob.html
···
19
{{ $linkstyle := "no-underline hover:underline" }}
20
<div class="pb-2 mb-3 text-base border-b border-gray-200 dark:border-gray-700">
21
<div class="flex flex-col md:flex-row md:justify-between gap-2">
22
-
<div id="breadcrumbs" class="overflow-x-auto whitespace-nowrap">
23
{{ range $idx, $value := .BreadCrumbs }}
24
{{ if ne $idx (sub (len $.BreadCrumbs) 1) }}
25
<a
···
29
>
30
/
31
{{ else }}
32
-
<span class="text-bold text-gray-500 dark:text-gray-400"
33
>{{ index . 0 }}</span
34
>
35
{{ end }}
···
51
This is a binary file and will not be displayed.
52
</p>
53
{{ else }}
54
-
<div class="overflow-auto relative text-ellipsis">
55
{{ range $idx, $line := $lines }}
56
{{ $linenr := add $idx 1 }}
57
<div class="flex">
···
19
{{ $linkstyle := "no-underline hover:underline" }}
20
<div class="pb-2 mb-3 text-base border-b border-gray-200 dark:border-gray-700">
21
<div class="flex flex-col md:flex-row md:justify-between gap-2">
22
+
<div id="breadcrumbs" class="overflow-x-auto whitespace-nowrap text-gray-400 dark:text-gray-500">
23
{{ range $idx, $value := .BreadCrumbs }}
24
{{ if ne $idx (sub (len $.BreadCrumbs) 1) }}
25
<a
···
29
>
30
/
31
{{ else }}
32
+
<span class="text-bold text-gray-600 dark:text-gray-300"
33
>{{ index . 0 }}</span
34
>
35
{{ end }}
···
51
This is a binary file and will not be displayed.
52
</p>
53
{{ else }}
54
+
<div class="overflow-auto relative">
55
{{ range $idx, $line := $lines }}
56
{{ $linenr := add $idx 1 }}
57
<div class="flex">