mirror of
https://github.com/go-gitea/gitea
synced 2024-11-17 23:54:25 +00:00
a370efc13f
Introduce `AvatarUtils`, no need to pass `$.Context` to every sub-template, and simplify the template helper functions.
19 lines
548 B
Handlebars
19 lines
548 B
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository forks">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
<h2 class="ui dividing header">
|
|
{{.locale.Tr "repo.forks"}}
|
|
</h2>
|
|
{{range .Forks}}
|
|
<div class="gt-df gt-ac gt-py-3">
|
|
<span class="gt-mr-2">{{ctx.AvatarUtils.Avatar .Owner}}</span>
|
|
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / <a href="{{.Link}}">{{.Name}}</a>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
|
|
{{template "base/paginate" .}}
|
|
</div>
|
|
{{template "base/footer" .}}
|