mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-29 09:31:11 -05:00
9269a038a4
* Direct avatar rendering This adds new template helpers for avatar rendering which output image elements with direct links to avatars which makes them cacheable by the browsers. This should be a major performance improvment for pages with many avatars. * fix avatars of other user's profile pages * fix top border on user avatar name * uncircle avatars * remove old incomplete avatar selector * use title attribute for name and add it back on blame * minor refactor * tweak comments * fix url path join and adjust test to new result * dedupe functions
38 lines
1 KiB
Handlebars
38 lines
1 KiB
Handlebars
{{template "base/head" .}}
|
|
<div class="page-content explore users">
|
|
{{template "explore/navbar" .}}
|
|
<div class="ui container">
|
|
{{template "explore/search" .}}
|
|
|
|
<div class="ui user list">
|
|
{{range .Users}}
|
|
<div class="item">
|
|
{{avatar .}}
|
|
<div class="content">
|
|
<span class="header">
|
|
<a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}}
|
|
{{if .Visibility.IsPrivate}}
|
|
<span class="text gold">{{svg "octicon-lock"}}</span>
|
|
{{end}}
|
|
</span>
|
|
<div class="description">
|
|
{{if .Location}}
|
|
{{svg "octicon-location"}} {{.Location}}
|
|
{{end}}
|
|
{{if and .Website}}
|
|
{{svg "octicon-link"}}
|
|
<a href="{{.Website}}" rel="nofollow">{{.Website}}</a>
|
|
{{end}}
|
|
{{svg "octicon-clock"}} {{$.i18n.Tr "user.join_on"}} {{.CreatedUnix.FormatShort}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div>{{$.i18n.Tr "explore.org_no_results"}}</div>
|
|
{{end}}
|
|
</div>
|
|
|
|
{{template "base/paginate" .}}
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|