mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-27 10:50:13 +08: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
23 lines
545 B
Handlebars
23 lines
545 B
Handlebars
{{template "base/head" .}}
|
|
<div class="page-content repository forks">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
<h2 class="ui dividing header">
|
|
{{.i18n.Tr "repo.forks"}}
|
|
</h2>
|
|
<div class="ui list">
|
|
{{range .Forks}}
|
|
<div class="item">
|
|
{{avatar .Owner}}
|
|
<div class="link">
|
|
<a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a>
|
|
/
|
|
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|