alpha
Login
or
Join now
4uffin.bsky.social
/
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.
My own copy of Tangled :)
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
commit page icons
author
Anirudh Oppiliappan
date
1 year ago
(Feb 21, 2025, 9:47 AM +0200)
commit
be470911
be470911b59f6e4e727a257f04177b51a56aabb6
parent
d9c34170
d9c34170874481c1de2999bbf05e574e5cb9e320
+9
-9
2 changed files
Expand all
Collapse all
Unified
Split
.zed
settings.json
appview
pages
templates
repo
commit.html
+1
.zed/settings.json
Reviewed
···
6
6
"languages": {
7
7
"HTML": {
8
8
"prettier": {
9
9
+
"format_on_save": false,
9
10
"allowed": true,
10
11
"parser": "go-template",
11
12
"plugins": ["prettier-plugin-go-template"]
+8
-9
appview/pages/templates/repo/commit.html
Reviewed
···
65
65
<div id="diff-file-header" class="border-b cursor-pointer bg-white border-black flex justify-between">
66
66
<div id="left-side-items" class="p-2">
67
67
{{ if .IsNew }}
68
68
-
<span class="diff-type">A</span>
68
68
+
<span class="diff-type p-1 text-sm bg-green-100 rounded text-green-700 select-none">A</span>
69
69
{{ end }}
70
70
{{ if .IsDelete }}
71
71
-
<span class="diff-type">D</span>
71
71
+
<span class="diff-type p-1 text-sm bg-red-100 rounded text-red-700 select-none">D</span>
72
72
{{ end }}
73
73
{{ if not (or .IsNew .IsDelete) }}
74
74
-
<span class="diff-type">M</span>
74
74
+
<span class="diff-type p-1 bg-gray-100 text-sm rounded text-gray-700 select-none">M</span>
75
75
{{ end }}
76
76
77
77
{{ if .Name.Old }}
···
85
85
{{- end -}}
86
86
</div>
87
87
88
88
-
<div id="right-side-items" class="p-2">
89
89
-
<a href="#file-{{ .Name.New }}" class="no-underline hover:underline">top of file</a>
88
88
+
{{ $iconstyle := "p-1 mx-1 hover:bg-gray-100 rounded" }}
89
89
+
<div id="right-side-items" class="p-2 flex items-center">
90
90
+
<a title="top of file" href="#file-{{ .Name.New }}" class="{{ $iconstyle }}"><i class="w-4 h-4" data-lucide="arrow-up-from-line"></i></a>
90
91
{{ if gt $idx 0 }}
91
91
-
<span class="px-1 select-none before:content-['\00B7']"></span>
92
92
{{ $prev := index $diff (sub $idx 1) }}
93
93
-
<a href="#file-{{ $prev.Name.New }}" class="no-underline hover:underline">prev</a>
93
93
+
<a title="previous file" href="#file-{{ $prev.Name.New }}" class="{{ $iconstyle }}"><i class="w-4 h-4" data-lucide="arrow-up"></i></a>
94
94
{{ end }}
95
95
96
96
{{ if lt $idx $last }}
97
97
-
<span class="px-1 select-none before:content-['\00B7']"></span>
98
97
{{ $next := index $diff (add $idx 1) }}
99
99
-
<a href="#file-{{ $next.Name.New }}" class="no-underline hover:underline">next</a>
98
98
+
<a title="next file" href="#file-{{ $next.Name.New }}" class="{{ $iconstyle }}"><i class="w-4 h-4" data-lucide="arrow-down"></i></a>
100
99
{{ end }}
101
100
</div>
102
101