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
fix bug with commit page
author
Anirudh Oppiliappan
date
1 year ago
(Feb 26, 2025, 1:18 AM +0200)
commit
b4cb2c5a
b4cb2c5a4a603191e12c9d6afb4688c730ce1fbe
parent
3e0c7f39
3e0c7f3908fc96fa46ab27577b29a4b34e7703af
+37
-33
1 changed file
Expand all
Collapse all
Unified
Split
appview
pages
templates
repo
commit.html
+37
-33
appview/pages/templates/repo/commit.html
Reviewed
···
39
39
40
40
<div class="diff-stat">
41
41
<br>
42
42
-
<strong class="text-sm uppercase">Affected files</strong>
42
42
+
<strong class="text-sm uppercase mb-4">Affected files</strong>
43
43
{{ range $diff }}
44
44
<ul>
45
45
-
{{ if .Name.New }}
45
45
+
{{ if .IsDelete }}
46
46
+
<li><a href="#file-{{ .Name.Old }}">{{ .Name.Old }}</a></li>
47
47
+
{{ else }}
46
48
<li><a href="#file-{{ .Name.New }}">{{ .Name.New }}</a></li>
47
47
-
{{ else }}
48
48
-
<li><a href="#file-{{ .Name.Old }}">{{ .Name.Old }}</a></li>
49
49
{{ end }}
50
50
</ul>
51
51
+
{{ end }}
51
52
</div>
52
53
</section>
53
53
-
{{end}}
54
54
+
54
55
{{end}}
55
56
56
57
{{ define "repoAfter" }}
···
83
84
<span class="diff-type p-1 mr-1 font-mono bg-gray-100 text-sm rounded text-gray-700 select-none">M</span>
84
85
{{ end }}
85
86
86
86
-
{{ $name := .Name.New}}
87
87
{{ if .IsDelete }}
88
88
-
{{ $name = .Name.Old }}
88
88
+
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}" class="no-underline hover:underline">{{ .Name.Old }}</a>
89
89
+
{{ else }}
90
90
+
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}" class="no-underline hover:underline">{{ .Name.New }}</a>
89
91
{{ end }}
90
90
-
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}" class="no-underline hover:underline">{{ $name }}</a>
91
92
</div>
92
93
93
94
{{ $iconstyle := "p-1 mx-1 hover:bg-gray-100 rounded" }}
···
106
107
107
108
</div>
108
109
</summary>
109
109
-
110
110
-
111
111
-
{{ if .IsDelete }}
112
112
-
<p class="text-center p-4 text-gray-400">This file as been deleted.</p>
113
113
-
{{ else }}
114
114
-
{{ if .IsBinary }}
115
115
-
<p class="text-center p-4 text-gray-400">Not showing binary file.</p>
116
116
-
{{ else }}
117
117
-
<pre class="overflow-auto">
118
118
-
{{- range .TextFragments -}}
119
119
-
<div class="bg-gray-100 text-gray-500 select-none">{{ .Header }}</div>
120
120
-
{{- range .Lines -}}
121
121
-
{{- if eq .Op.String "+" -}}
122
122
-
<div class="bg-green-100 text-green-700 p-1"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
123
123
-
{{- end -}}
124
110
125
125
-
{{- if eq .Op.String "-" -}}
126
126
-
<div class="bg-red-100 text-red-700 p-1"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
127
127
-
{{- end -}}
111
111
+
{{ if .IsDelete }}
112
112
+
<p class="text-center text-gray-400 p-4">
113
113
+
This file has been deleted in this commit.
114
114
+
</p>
115
115
+
{{ else }}
116
116
+
{{ if .IsBinary }}
117
117
+
<p class="text-center text-gray-400 p-4">
118
118
+
This is a binary file and will not be displayed.
119
119
+
</p>
120
120
+
{{ else }}
121
121
+
<pre class="overflow-auto">
122
122
+
{{- range .TextFragments -}}
123
123
+
<div class="bg-gray-100 text-gray-500 select-none">{{ .Header }}</div>
124
124
+
{{- range .Lines -}}
125
125
+
{{- if eq .Op.String "+" -}}
126
126
+
<div class="bg-green-100 text-green-700 p-1"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
127
127
+
{{- end -}}
128
128
129
129
-
{{- if eq .Op.String " " -}}
130
130
-
<div class="text-gray-500 px"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
131
131
-
{{- end -}}
129
129
+
{{- if eq .Op.String "-" -}}
130
130
+
<div class="bg-red-100 text-red-700 p-1"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
131
131
+
{{- end -}}
132
132
+
133
133
+
{{- if eq .Op.String " " -}}
134
134
+
<div class="text-gray-500 px"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
135
135
+
{{- end -}}
132
136
133
133
-
{{- end -}}
134
134
-
{{- end -}}
135
135
-
</pre>
137
137
+
{{- end -}}
136
138
{{- end -}}
137
137
-
{{- end -}}
139
139
+
</pre>
140
140
+
{{- end -}}
141
141
+
{{ end }}
138
142
139
143
</details>
140
144