tangled
alpha
login
or
join now
julien.rbrt.fr
/
tangled-core
forked from
tangled.org/core
0
fork
atom
Monorepo for Tangled — https://tangled.org
0
fork
atom
overview
issues
pulls
pipelines
appview: pulls: improve stack ui
oppi.li
9 months ago
9d250f3a
a373e2e1
+6
-4
1 changed file
expand all
collapse all
unified
split
appview
pages
templates
repo
pulls
fragments
pullStack.html
+6
-4
appview/pages/templates/repo/pulls/fragments/pullStack.html
···
5
5
{{ with $.Pull }}
6
6
{{ $isCurrent = eq $pull.PullId $.Pull.PullId }}
7
7
{{ end }}
8
8
-
<div class="flex gap-2 items-center p-2">
9
9
-
{{ block "summarizedHeader" (list $pull $) }} {{ end }}
8
8
+
<div class="flex gap-2 items-center p-2 hover:bg-gray-100 hover:dark:bg-gray-700 {{ if $isCurrent }}bg-gray-100 dark:bg-gray-700{{ end }}">
10
9
{{ if $isCurrent }}
11
11
-
{{ i "arrow-left" "w-4 h-4" }}
10
10
+
{{ i "arrow-right" "w-4 h-4" }}
12
11
{{ end }}
12
12
+
<div {{ if not $isCurrent }} class="ml-6" {{ end }}>
13
13
+
{{ block "summarizedHeader" (list $pull $) }} {{ end }}
14
14
+
</div>
13
15
</div>
14
16
{{ end }}
15
17
</div>
···
18
20
{{ define "summarizedHeader" }}
19
21
{{ $pull := index . 0 }}
20
22
{{ $root := index . 1 }}
21
21
-
<a href="/{{ $root.RepoInfo.FullName }}/pulls/{{ $pull.PullId }}" class="no-underline hover:no-underline">
23
23
+
<a href="/{{ $root.RepoInfo.FullName }}/pulls/{{ $pull.PullId }}">
22
24
<div class="flex text-sm items-center gap-2">
23
25
{{ block "summarizedPullState" $pull }} {{ end }}
24
26
<span class="dark:text-white">