mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-05 09:49:37 +08: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" .}}
|