Page UI Update
This commit is contained in:
@@ -518,7 +518,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<a class="size-h3 color-primary" href="{{ .String "html_url" }}">{{ .String "full_name" }}</a>
|
<a class="size-h3 color-primary" href="{{ .String "html_url" }}">{{ .String "full_name" }}</a>
|
||||||
<h3><a href="" target="_blank"></a></h3>
|
<h3><a href="" target="_blank"></a></h3>
|
||||||
<p>{{ .String "description" }}</p>
|
|
||||||
<ul class="list-horizontal-text device-info">
|
<ul class="list-horizontal-text device-info">
|
||||||
<li data-popover-type="html"><div data-popover-html="">Last Update</div>{{ formatTime "DateOnly" ( parseTime "RFC3339" (.String "updated_at") ) }}</li>
|
<li data-popover-type="html"><div data-popover-html="">Last Update</div>{{ formatTime "DateOnly" ( parseTime "RFC3339" (.String "updated_at") ) }}</li>
|
||||||
<li data-popover-type="html"><div data-popover-html="">Visibility</div>{{ .String "visibility" }}</li>
|
<li data-popover-type="html"><div data-popover-html="">Visibility</div>{{ .String "visibility" }}</li>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
widgets:
|
widgets:
|
||||||
- type: rss
|
- type: rss
|
||||||
title: SirBlob Blog
|
title: SirBlob Blog
|
||||||
limit: 15
|
limit: 5
|
||||||
style: vertical-list
|
style: vertical-list
|
||||||
feeds:
|
feeds:
|
||||||
- url: https://blog.sirblob.co/rss.xml
|
- url: https://blog.sirblob.co/rss.xml
|
||||||
@@ -1089,17 +1089,17 @@
|
|||||||
cache: 1m
|
cache: 1m
|
||||||
template: |
|
template: |
|
||||||
<div class="gitea-repos">
|
<div class="gitea-repos">
|
||||||
<ul class="list list-gap-14 collapsible-container" data-collapse-after="10">
|
<ul class="list list-gap-6 collapsible-container" data-collapse-after="8">
|
||||||
{{ range .JSON.Array "" }}
|
{{ range .JSON.Array "" }}
|
||||||
<li>
|
<li>
|
||||||
<a class="size-h4 color-primary text-truncate block" href="{{ .String "html_url" }}" target="_blank">{{ .String "name" }}</a>
|
<a class="size-sm color-primary text-truncate block" href="{{ .String "html_url" }}" target="_blank">{{ .String "name" }}</a>
|
||||||
{{ if .String "description" }}
|
{{ if .String "description" }}
|
||||||
<p class="size-sm color-subdue line-clamp-2" style="margin-top: 4px;">{{ .String "description" }}</p>
|
<p class="size-xs color-subdue line-clamp-1" style="margin-top: 2px;">{{ .String "description" }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<ul class="list-horizontal-text size-xs margin-top-1">
|
<ul class="list-horizontal-text size-xs margin-top-1">
|
||||||
<li>{{ formatTime "Jan 02" ( parseTime "RFC3339" (.String "updated_at") ) }}</li>
|
<li class="color-subdue">{{ formatTime "Jan 02" ( parseTime "RFC3339" (.String "updated_at") ) }}</li>
|
||||||
{{ if .String "language" }}
|
{{ if .String "language" }}
|
||||||
<li>{{ .String "language" }}</li>
|
<li class="color-subdue">{{ .String "language" }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -1110,21 +1110,22 @@
|
|||||||
- type: custom-api
|
- type: custom-api
|
||||||
title: Recent Activity
|
title: Recent Activity
|
||||||
url: https://git.sirblob.co/api/v1/users/SirBlob/activities/feeds
|
url: https://git.sirblob.co/api/v1/users/SirBlob/activities/feeds
|
||||||
|
parameters:
|
||||||
|
limit: 5
|
||||||
cache: 1m
|
cache: 1m
|
||||||
headers:
|
headers:
|
||||||
Accept: application/json
|
Accept: application/json
|
||||||
template: |
|
template: |
|
||||||
<div class="activity-feed">
|
<div class="activity-feed">
|
||||||
<ul class="list list-gap-10">
|
<ul class="list list-gap-6">
|
||||||
{{ range .JSON.Array "" }}
|
{{ range .JSON.Array "" }}
|
||||||
{{ $type := .String "op_type" }}
|
{{ $type := .String "op_type" }}
|
||||||
{{ $repo := .String "repo.full_name" }}
|
{{ $repo := .String "repo.full_name" }}
|
||||||
{{ $repoUrl := .String "repo.html_url" }}
|
{{ $repoUrl := .String "repo.html_url" }}
|
||||||
{{ $date := .String "created" }}
|
{{ $date := .String "created" }}
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<div class="size-sm color-subdue">{{ $date | parseTime "RFC3339" | formatTime "Jan 02 15:04" }}</div>
|
<div class="size-xs color-subdue">{{ $date | parseTime "RFC3339" | formatTime "Jan 02 15:04" }}</div>
|
||||||
<div class="size-base">
|
<div class="size-sm">
|
||||||
{{ if eq $type "commit_repo" }}
|
{{ if eq $type "commit_repo" }}
|
||||||
<span class="color-primary">Pushed</span> to <a href="{{ $repoUrl }}" class="color-highlight">{{ $repo }}</a>
|
<span class="color-primary">Pushed</span> to <a href="{{ $repoUrl }}" class="color-highlight">{{ $repo }}</a>
|
||||||
{{ else if eq $type "create_repo" }}
|
{{ else if eq $type "create_repo" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user