+9
-8
appview/pages/templates/user/profile.html
+9
-8
appview/pages/templates/user/profile.html
···
17
17
{{ end }}
18
18
19
19
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
-
{{ $textColor := "text-gray-800 dark:text-gray-700" }}
26
+
{{ $textColor := "text-gray-800 dark:text-gray-400" }}
28
27
{{ $icon := "ban" }}
29
28
{{ if .Issue.Open }}
30
-
{{ $textColor = "text-green-600 dark:text-green-700" }}
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
-
{{ $textColor := "text-gray-800 dark:text-gray-700" }}
46
+
{{ $textColor := "text-gray-800 dark:text-gray-400" }}
48
47
{{ $icon := "git-pull-request-closed" }}
49
48
{{ if .Pull.State.IsOpen }}
50
-
{{ $textColor = "text-green-600 dark:text-green-700" }}
49
+
{{ $textColor = "text-green-600 dark:text-green-500" }}
51
50
{{ $icon = "git-pull-request" }}
52
51
{{ else if .Pull.State.IsMerged }}
53
-
{{ $textColor = "text-purple-600 dark:text-purple-700" }}
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
-
<div class="text-black dark:text-white p-1">
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
+
{{ else }}
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
-
{{ end }}
177
+
{{ end }}