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
nicer fg colors on timeline
author
Akshay
date
1 year ago
(Mar 29, 2025, 9:51 AM UTC)
commit
cef9f71b
cef9f71be7c38800b3f0da78806872dc247d6208
parent
10a10729
10a107296fc79a525e8e395fabd28b240db8325f
+9
-8
1 changed file
Expand all
Collapse all
Unified
Split
appview
pages
templates
user
profile.html
+9
-8
appview/pages/templates/user/profile.html
Reviewed
···
17
17
{{ end }}
18
18
19
19
20
20
-
21
20
{{ define "profileTimeline" }}
22
21
<div class="flex flex-col gap-3 relative">
23
22
<p class="px-6 text-sm font-bold py-2 dark:text-white">ACTIVITY</p>
24
23
{{ range .ProfileTimeline }}
25
24
{{ if eq .Type "issue" }}
26
25
<div class="px-6 py-2 bg-white dark:bg-gray-800 rounded drop-shadow-sm w-fit max-w-full flex items-center gap-2">
27
27
-
{{ $textColor := "text-gray-800 dark:text-gray-700" }}
26
26
+
{{ $textColor := "text-gray-800 dark:text-gray-400" }}
28
27
{{ $icon := "ban" }}
29
28
{{ if .Issue.Open }}
30
30
-
{{ $textColor = "text-green-600 dark:text-green-700" }}
29
29
+
{{ $textColor = "text-green-600 dark:text-green-500" }}
31
30
{{ $icon = "circle-dot" }}
32
31
{{ end }}
33
32
<div class="p-1 {{ $textColor }}">
···
44
43
</div>
45
44
{{ else if eq .Type "pull" }}
46
45
<div class="px-6 py-2 bg-white dark:bg-gray-800 rounded drop-shadow-sm w-fit flex items-center gap-3">
47
47
-
{{ $textColor := "text-gray-800 dark:text-gray-700" }}
46
46
+
{{ $textColor := "text-gray-800 dark:text-gray-400" }}
48
47
{{ $icon := "git-pull-request-closed" }}
49
48
{{ if .Pull.State.IsOpen }}
50
50
-
{{ $textColor = "text-green-600 dark:text-green-700" }}
49
49
+
{{ $textColor = "text-green-600 dark:text-green-500" }}
51
50
{{ $icon = "git-pull-request" }}
52
51
{{ else if .Pull.State.IsMerged }}
53
53
-
{{ $textColor = "text-purple-600 dark:text-purple-700" }}
52
52
+
{{ $textColor = "text-purple-600 dark:text-purple-500" }}
54
53
{{ $icon = "git-merge" }}
55
54
{{ end }}
56
55
<div class="{{ $textColor }} p-1">
···
68
67
</div>
69
68
{{ else if eq .Type "repo" }}
70
69
<div class="px-6 py-2 bg-white dark:bg-gray-800 rounded drop-shadow-sm w-fit flex items-center gap-3">
71
71
-
<div class="text-black dark:text-white p-1">
70
70
+
<div class="text-gray-800 dark:text-gray-400 p-1">
72
71
{{ i "book-plus" "w-5 h-5" }}
73
72
</div>
74
73
<div>
···
79
78
</div>
80
79
</div>
81
80
{{ end }}
81
81
+
{{ else }}
82
82
+
<p class="px-6 dark:text-white">This user does not have any activity yet.</p>
82
83
{{ end }}
83
84
</div>
84
85
{{ end }}
···
173
174
<p class="px-6 dark:text-white">This user is not collaborating.</p>
174
175
{{ end }}
175
176
</div>
176
176
-
{{ end }}
177
177
+
{{ end }}