mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 00:55:27 +00:00
a370efc13f
Introduce `AvatarUtils`, no need to pass `$.Context` to every sub-template, and simplify the template helper functions.
19 lines
548 B
Go HTML Template
19 lines
548 B
Go HTML Template
{{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" .}}
|