Added Gitea Recent Activity
This commit is contained in:
@@ -1106,3 +1106,34 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
- type: custom-api
|
||||||
|
title: Recent Activity
|
||||||
|
url: https://git.sirblob.co/api/v1/users/SirBlob/activities/feeds
|
||||||
|
cache: 1m
|
||||||
|
headers:
|
||||||
|
Accept: application/json
|
||||||
|
template: |
|
||||||
|
<div class="activity-feed">
|
||||||
|
<ul class="list list-gap-10">
|
||||||
|
{{ range .JSON.Array "" }}
|
||||||
|
{{ $type := .String "op_type" }}
|
||||||
|
{{ $repo := .String "repo.full_name" }}
|
||||||
|
{{ $repoUrl := .String "repo.html_url" }}
|
||||||
|
{{ $date := .String "created" }}
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<div class="size-sm color-subdue">{{ $date | parseTime "RFC3339" | formatTime "Jan 02 15:04" }}</div>
|
||||||
|
<div class="size-base">
|
||||||
|
{{ if eq $type "commit_repo" }}
|
||||||
|
<span class="color-primary">Pushed</span> to <a href="{{ $repoUrl }}" class="color-highlight">{{ $repo }}</a>
|
||||||
|
{{ else if eq $type "create_repo" }}
|
||||||
|
<span class="color-primary">Created</span> <a href="{{ $repoUrl }}" class="color-highlight">{{ $repo }}</a>
|
||||||
|
{{ else }}
|
||||||
|
<span class="color-primary">{{ $type }}</span> on <a href="{{ $repoUrl }}" class="color-highlight">{{ $repo }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user