···
{{ define "profileTimeline" }}
19
-
<p class="text-sm font-bold py-2 dark:text-white">ACTIVITY</p>
19
+
<p class="text-sm font-bold py-2 dark:text-white px-6">ACTIVITY</p>
<div class="flex flex-col gap-6 relative">
{{ with .ProfileTimeline }}
{{ range $idx, $byMonth := .ByMonth }}
<div class="bg-white dark:bg-gray-800 px-6 py-4 rounded drop-shadow-sm">
26
-
<p class="text-sm font-bold py-2 dark:text-white">This month</p>
32
-
<p class="text-sm font-bold py-2 dark:text-white">{{$idx}} month{{$s}} ago</p>
32
+
<p class="text-sm font-bold dark:text-white mb-2">{{$idx}} month{{$s}} ago</p>
35
-
<div class="flex flex-col gap-4">
36
-
{{ block "repoEvents" (list .RepoEvents $.DidHandleMap) }} {{ end }}
37
-
{{ block "issueEvents" (list .IssueEvents $.DidHandleMap) }} {{ end }}
38
-
{{ block "pullEvents" (list .PullEvents $.DidHandleMap) }} {{ end }}
36
+
<div class="text-gray-500 dark:text-gray-400">
37
+
No activity for this month
40
+
<div class="flex flex-col gap-1">
41
+
{{ block "repoEvents" (list .RepoEvents $.DidHandleMap) }} {{ end }}
42
+
{{ block "issueEvents" (list .IssueEvents $.DidHandleMap) }} {{ end }}
43
+
{{ block "pullEvents" (list .PullEvents $.DidHandleMap) }} {{ end }}
···
{{ $handleMap := index . 1 }}
{{ if gt (len $items) 0 }}
56
-
<summary class="list-none cursor-pointer">
62
+
<summary class="list-none cursor-pointer hover:underline">
<div class="flex items-center gap-2">
64
+
{{ i "book-plus" "w-4 h-4" }}
created {{ len $items }} {{if eq (len $items) 1 }}repository{{else}}repositories{{end}}
61
-
<div class="p-2 text-sm flex flex-col gap-3">
68
+
<div class="p-2 pr-0 text-sm flex flex-col gap-3">
<div class="flex flex-wrap items-center gap-2">
<span class="text-gray-500 dark:text-gray-400">
···
{{ $handleMap := index . 1 }}
{{ if gt (len $items) 0 }}
90
-
<summary class="list-none cursor-pointer">
97
+
<summary class="list-none cursor-pointer hover:underline">
<div class="flex items-center gap-2">
99
+
{{ i "circle-dot" "w-4 h-4" }}
created {{ len $items }} {{if eq (len $items) 1 }}issue{{else}}issues{{end}}
95
-
<span class="px-2 py-1/2 text-sm rounded-sm text-white bg-green-600 dark:bg-green-700">
96
-
{{$stats.Open}} open
98
-
<span class="px-2 py-1/2 text-sm rounded-sm text-white bg-gray-800 dark:bg-gray-700">
105
+
{{ if gt $stats.Open 0 }}
106
+
<span class="px-2 py-1/2 text-sm rounded text-white bg-green-600 dark:bg-green-700">
107
+
{{$stats.Open}} open
111
+
{{ if gt $stats.Closed 0 }}
112
+
<span class="px-2 py-1/2 text-sm rounded text-white bg-gray-800 dark:bg-gray-700">
103
-
<div class="p-2 text-sm flex flex-col gap-3">
119
+
<div class="p-2 pr-0 text-sm flex flex-col gap-3">
{{ $repoOwner := index $handleMap .Metadata.Repo.Did }}
{{ $repoName := .Metadata.Repo.Name }}
···
{{ $handleMap := index . 1 }}
{{ if gt (len $items) 0 }}
142
-
<summary class="list-none cursor-pointer">
158
+
<summary class="list-none cursor-pointer hover:underline">
<div class="flex items-center gap-2">
160
+
{{ i "git-pull-request" "w-4 h-4" }}
created {{ len $items }} {{if eq (len $items) 1 }}pull request{{else}}pull requests{{end}}
147
-
<span class="px-2 py-1/2 text-sm rounded-sm text-white bg-green-600 dark:bg-green-700">
148
-
{{$stats.Open}} open
150
-
<span class="px-2 py-1/2 text-sm rounded-sm text-white bg-purple-600 dark:bg-purple-700">
151
-
{{$stats.Merged}} merged
153
-
<span class="px-2 py-1/2 text-sm rounded-sm text-black dark:text-white bg-gray-50 dark:bg-gray-700 ">
166
+
{{ if gt $stats.Open 0 }}
167
+
<span class="px-2 py-1/2 text-sm rounded text-white bg-green-600 dark:bg-green-700">
168
+
{{$stats.Open}} open
172
+
{{ if gt $stats.Merged 0 }}
173
+
<span class="px-2 py-1/2 text-sm rounded text-white bg-purple-600 dark:bg-purple-700">
174
+
{{$stats.Merged}} merged
179
+
{{ if gt $stats.Closed 0 }}
180
+
<span class="px-2 py-1/2 text-sm rounded text-black dark:text-white bg-gray-50 dark:bg-gray-700 ">
158
-
<div class="p-2 text-sm flex flex-col gap-3">
187
+
<div class="p-2 pr-0 text-sm flex flex-col gap-3">
{{ $repoOwner := index $handleMap .Repo.Did }}
{{ $repoName := .Repo.Name }}
···
<time class="text-gray-700 dark:text-gray-400 text-xs ml-2">{{ .Created | shortTimeFmt }}</time>