This commit is contained in:
rustdesk
2026-03-20 15:16:55 +08:00
parent b6655924d6
commit 1736869d5f
462 changed files with 1479 additions and 124 deletions

View File

@@ -21,11 +21,18 @@ padding-left: 4px ;
</style>
<div class="ghContributors">
{{ $url := .Get 0 }}
{{ range getJSON $url }}
{{ with try (resources.GetRemote $url) }}
{{ with .Err }}
{{ warnf "Unable to fetch GitHub contributors from %q: %s" $url . }}
{{ else with .Value }}
{{ $contributors := .Content | transform.Unmarshal }}
{{ range $contributors }}
<div>
<img src="{{.avatar_url}}" class="inline" width="32" height="32" style="height: 32px;height: 32px;margin-bottom:.25em; vertical-align:middle; ">
<label><a href="{{.html_url}}">@{{.login}}</a></label>
<span class="contributions">{{.contributions}} commits</span>
</div>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>