alpha
Login
or
Join now
dunkirk.sh
/
core
forked from
tangled.org/core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add next/prev links to commits
author
Akshay
date
1 year ago
(Feb 19, 2025, 11:13 PM UTC)
commit
3f1c4af4
3f1c4af4054f172b67d4dec2834f68d9da21ae06
parent
dc2b1b43
dc2b1b4311268b012918dc1ea4ded9892d666cf8
+18
-2
1 changed file
Expand all
Collapse all
Unified
Split
appview
pages
templates
repo
commit.html
+18
-2
appview/pages/templates/repo/commit.html
Reviewed
···
61
61
{{ $this := $commit.This }}
62
62
{{ $parent := $commit.Parent }}
63
63
64
64
-
{{ range $diff }}
64
64
+
{{ $last := sub (len $diff) 1 }}
65
65
+
{{ range $idx, $hunk := $diff }}
66
66
+
{{ with $hunk }}
65
67
<section class="mt-4 border border-black w-full mx-auto">
66
68
<div id="file-{{ .Name.New }}">
67
69
<div id="diff-file">
···
91
93
</div>
92
94
93
95
<div id="right-side-items" class="p-2">
94
94
-
<a href="#file-{{ .Name.New }}" class="no-underline hover:underline">to top of file</a>
96
96
+
<a href="#file-{{ .Name.New }}" class="no-underline hover:underline">top of file</a>
97
97
+
98
98
+
{{ if gt $idx 0 }}
99
99
+
·
100
100
+
{{ $prev := index $diff (sub $idx 1) }}
101
101
+
<a href="#file-{{ $prev.Name.New }}" class="no-underline hover:underline">prev</a>
102
102
+
{{ end }}
103
103
+
104
104
+
105
105
+
{{ if lt $idx $last }}
106
106
+
·
107
107
+
{{ $next := index $diff (add $idx 1) }}
108
108
+
<a href="#file-{{ $next.Name.New }}" class="no-underline hover:underline">next</a>
109
109
+
{{ end }}
95
110
</div>
96
111
97
112
</div>
···
127
142
</div>
128
143
</div>
129
144
</section>
145
145
+
{{ end }}
130
146
{{ end }}
131
147
132
148
{{end}}