···
{{ if gt (len $items) 0 }}
-
<summary class="list-none cursor-pointer hover:underline">
<div class="flex items-center gap-2">
{{ i "book-plus" "w-4 h-4" }}
created {{ len $items }} {{if eq (len $items) 1 }}repository{{else}}repositories{{end}}
-
<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">
···
<a href="/{{ index $handleMap .Repo.Did }}/{{ .Repo.Name }}" class="no-underline hover:underline">
-
<time class="text-gray-700 dark:text-gray-400 text-xs ml-2">{{ .Repo.Created | shortTimeFmt }}</time>
···
{{ if gt (len $items) 0 }}
-
<summary class="list-none cursor-pointer hover:underline">
<div class="flex items-center gap-2">
{{ i "circle-dot" "w-4 h-4" }}
···
-
<div class="p-2 pr-0 text-sm flex flex-col gap-3">
{{ $repoOwner := index $handleMap .Metadata.Repo.Did }}
{{ $repoName := .Metadata.Repo.Name }}
{{ $repoUrl := printf "%s/%s" $repoOwner $repoName }}
-
<div class="flex flex-wrap items-center gap-2 text-gray-600 dark:text-gray-300">
<span class="text-green-600 dark:text-green-500">
{{ i "circle-dot" "w-4 h-4" }}
···
-
<a href="/{{$repoUrl}}/issues/{{ .IssueId }}" class="no-underline hover:underline">
-
<span class="text-gray-500 dark:text-gray-400">#{{ .IssueId }}</span>
-
<a href="/{{$repoUrl}}" class="no-underline hover:underline">
-
<time class="text-gray-700 dark:text-gray-400 text-xs ml-2">{{ .Created | shortTimeFmt }}</time>
···
{{ $handleMap := index . 1 }}
{{ if gt (len $items) 0 }}
-
<summary class="list-none cursor-pointer hover:underline">
<div class="flex items-center gap-2">
{{ i "git-pull-request" "w-4 h-4" }}
···
-
<div class="p-2 pr-0 text-sm flex flex-col gap-3">
{{ $repoOwner := index $handleMap .Repo.Did }}
{{ $repoName := .Repo.Name }}
{{ $repoUrl := printf "%s/%s" $repoOwner $repoName }}
-
<div class="flex flex-wrap items-center gap-2 text-gray-600 dark:text-gray-300">
<span class="text-green-600 dark:text-green-500">
{{ i "git-pull-request" "w-4 h-4" }}
···
{{ i "git-pull-request-closed" "w-4 h-4" }}
-
<a href="/{{$repoUrl}}/pulls/{{ .PullId }}" class="no-underline hover:underline">
-
<span class="text-gray-500 dark:text-gray-400">#{{ .PullId }}</span>
-
<a href="/{{$repoUrl}}" class="no-underline hover:underline">
-
<time class="text-gray-700 dark:text-gray-400 text-xs ml-2">{{ .Created | shortTimeFmt }}</time>