···
{{ block "collaboratingRepos" . }}{{ end }}
<div class="md:col-span-2 order-3 md:order-3">
13
-
{{ block "profileTimeline2" . }}{{ end }}
13
+
{{ block "profileTimeline" . }}{{ end }}
18
-
{{ define "profileTimeline2" }}
18
+
{{ define "profileTimeline" }}
<p class="text-sm font-bold py-2 dark:text-white">ACTIVITY</p>
<div class="flex flex-col gap-6 relative">
{{ with .ProfileTimeline }}
{{ range $idx, $byMonth := .ByMonth }}
24
+
<div class="bg-white dark:bg-gray-800 px-6 py-4 rounded drop-shadow-sm">
<p class="text-sm font-bold py-2 dark:text-white">This month</p>
···
<summary class="list-none cursor-pointer">
<div class="flex items-center gap-2">
58
-
{{ i "unfold-vertical" "w-4 h-4" }}
59
-
created {{ len $items }} repositories
58
+
created {{ len $items }} {{if eq (len $items) 1 }}repository{{else}}repositories{{end}}
62
-
<div class="p-2 pl-8 text-sm flex flex-col gap-3">
61
+
<div class="p-2 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">
···
<summary class="list-none cursor-pointer">
<div class="flex items-center gap-2">
93
-
{{ i "unfold-vertical" "w-4 h-4" }}
95
-
created {{ len $items }} issues
93
+
created {{ len $items }} {{if eq (len $items) 1 }}issue{{else}}issues{{end}}
<span class="px-2 py-1/2 text-sm rounded-sm text-white bg-green-600 dark:bg-green-700">
···
105
-
<div class="p-2 pl-8 text-sm flex flex-col gap-3">
103
+
<div class="p-2 text-sm flex flex-col gap-3">
{{ $repoOwner := index $handleMap .Metadata.Repo.Did }}
{{ $repoName := .Metadata.Repo.Name }}
···
<summary class="list-none cursor-pointer">
<div class="flex items-center gap-2">
146
-
{{ i "unfold-vertical" "w-4 h-4" }}
148
-
created {{ len $items }} pull requests
145
+
created {{ len $items }} {{if eq (len $items) 1 }}pull request{{else}}pull requests{{end}}
<span class="px-2 py-1/2 text-sm rounded-sm text-white bg-green-600 dark:bg-green-700">
···
161
-
<div class="p-2 pl-8 text-sm flex flex-col gap-3">
158
+
<div class="p-2 text-sm flex flex-col gap-3">
{{ $repoOwner := index $handleMap .Repo.Did }}
{{ $repoName := .Repo.Name }}
···
197
-
{{ define "profileTimeline" }}
198
-
<div class="flex flex-col gap-3 relative">
199
-
<p class="px-6 text-sm font-bold py-2 dark:text-white">ACTIVITY</p>
200
-
{{ range .ProfileTimeline }}
201
-
{{ if eq .Type "issue" }}
202
-
<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">
203
-
{{ $textColor := "text-gray-800 dark:text-gray-400" }}
204
-
{{ $icon := "ban" }}
205
-
{{ if .Issue.Open }}
206
-
{{ $textColor = "text-green-600 dark:text-green-500" }}
207
-
{{ $icon = "circle-dot" }}
209
-
<div class="p-1 {{ $textColor }}">
210
-
{{ i $icon "w-5 h-5" }}
213
-
<p class="text-gray-600 dark:text-gray-300">
214
-
<a href="/{{ index $.DidHandleMap .Repo.Did }}/{{ .Repo.Name }}/issues/{{ .Issue.IssueId }}" class="no-underline hover:underline">{{ .Issue.Title }} <span class="text-gray-500 dark:text-gray-400">#{{ .Issue.IssueId }}</span></a>
216
-
<a href="/{{ index $.DidHandleMap .Repo.Did }}/{{ .Repo.Name }}" class="no-underline hover:underline">{{ index $.DidHandleMap .Repo.Did }}<span class="select-none">/</span>{{ .Repo.Name }}</a>
217
-
<time class="text-gray-700 dark:text-gray-400 text-xs ml-2">{{ .Issue.Created | shortTimeFmt }}</time>
221
-
{{ else if eq .Type "pull" }}
222
-
<div class="px-6 py-2 bg-white dark:bg-gray-800 rounded drop-shadow-sm w-fit flex items-center gap-3">
223
-
{{ $textColor := "text-gray-800 dark:text-gray-400" }}
224
-
{{ $icon := "git-pull-request-closed" }}
225
-
{{ if .Pull.State.IsOpen }}
226
-
{{ $textColor = "text-green-600 dark:text-green-500" }}
227
-
{{ $icon = "git-pull-request" }}
228
-
{{ else if .Pull.State.IsMerged }}
229
-
{{ $textColor = "text-purple-600 dark:text-purple-500" }}
230
-
{{ $icon = "git-merge" }}
232
-
<div class="{{ $textColor }} p-1">
233
-
{{ i $icon "w-5 h-5" }}
236
-
<p class="text-gray-600 dark:text-gray-300">
237
-
<a href="/{{ index $.DidHandleMap .Repo.Did }}/{{ .Repo.Name }}/pulls/{{ .Pull.PullId }}" class="no-underline hover:underline">{{ .Pull.Title }} <span class="text-gray-500 dark:text-gray-400">#{{ .Pull.PullId }}</span></a>
239
-
<a href="/{{ index $.DidHandleMap .Repo.Did }}/{{ .Repo.Name }}" class="no-underline hover:underline">
240
-
{{ index $.DidHandleMap .Repo.Did }}<span class="select-none">/</span>{{ .Repo.Name }}</a>
241
-
<time class="text-gray-700 dark:text-gray-400 text-xs ml-2">{{ .Pull.Created | shortTimeFmt }}</time>
245
-
{{ else if eq .Type "repo" }}
246
-
<div class="px-6 py-2 bg-white dark:bg-gray-800 rounded drop-shadow-sm w-fit flex items-center gap-3">
248
-
<div class="text-gray-800 dark:text-gray-400 p-1">
249
-
{{ i "git-fork" "w-5 h-5" }}
252
-
<div class="text-gray-800 dark:text-gray-400 p-1">
253
-
{{ i "book-plus" "w-5 h-5" }}
257
-
<p class="text-gray-600 dark:text-gray-300">
261
-
<a href="/{{ index $.DidHandleMap .Source.Did }}/{{ .Source.Name }}" class="no-underline hover:underline">
262
-
{{ index $.DidHandleMap .Source.Did }}/{{ .Source.Name }}
265
-
<a href="/{{ didOrHandle $.UserHandle $.UserDid }}/{{ .Repo.Name }}" class="no-underline hover:underline">{{ .Repo.Name }}</a>
268
-
<a href="/{{ index $.DidHandleMap .Repo.Did }}/{{ .Repo.Name }}" class="no-underline hover:underline">{{ .Repo.Name }}</a>
270
-
<time class="text-gray-700 dark:text-gray-400 text-xs ml-2">{{ .Repo.Created | shortTimeFmt }}</time>
276
-
<p class="px-6 dark:text-white">This user does not have any activity yet.</p>
{{ define "profileCard" }}