···
{{ define "profileTimeline" }}
<div class="flex flex-col gap-3 relative">
<p class="px-6 text-sm font-bold py-2 dark:text-white">ACTIVITY</p>
{{ range .ProfileTimeline }}
{{ if eq .Type "issue" }}
<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" }}
30
-
{{ $textColor = "text-green-600 dark:text-green-700" }}
29
+
{{ $textColor = "text-green-600 dark:text-green-500" }}
{{ $icon = "circle-dot" }}
<div class="p-1 {{ $textColor }}">
···
{{ else if eq .Type "pull" }}
<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" }}
{{ $icon := "git-pull-request-closed" }}
{{ if .Pull.State.IsOpen }}
50
-
{{ $textColor = "text-green-600 dark:text-green-700" }}
49
+
{{ $textColor = "text-green-600 dark:text-green-500" }}
{{ $icon = "git-pull-request" }}
{{ else if .Pull.State.IsMerged }}
53
-
{{ $textColor = "text-purple-600 dark:text-purple-700" }}
52
+
{{ $textColor = "text-purple-600 dark:text-purple-500" }}
{{ $icon = "git-merge" }}
<div class="{{ $textColor }} p-1">
···
{{ else if eq .Type "repo" }}
<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">
{{ i "book-plus" "w-5 h-5" }}
···
82
+
<p class="px-6 dark:text-white">This user does not have any activity yet.</p>
···
<p class="px-6 dark:text-white">This user is not collaborating.</p>