mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-21 22:44:25 +08:00
4f879a00df
- Move models/GetForks to services/FindForks - Add doer as a parameter of FindForks to check permissions - Slight performance optimization for get forks API with batch loading of repository units - Add tests for forking repository to organizations --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
21 lines
600 B
Handlebars
21 lines
600 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">
|
|
{{ctx.Locale.Tr "repo.forks"}}
|
|
</h2>
|
|
<div class="flex-list">
|
|
{{range .Forks}}
|
|
<div class="flex-item tw-border-0 repo-fork-item">
|
|
<span>{{ctx.AvatarUtils.Avatar .Owner}}</span>
|
|
<span><a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / <a href="{{.Link}}">{{.Name}}</a></span>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
{{template "base/paginate" .}}
|
|
</div>
|
|
{{template "base/footer" .}}
|