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