mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-13 12:35:52 +00:00
Takes too long to load. Move repos instead into a per-user page. Also adds basic redacting of repo information.
58 lines
1.3 KiB
HTML
58 lines
1.3 KiB
HTML
{{define "title"}}Repos Admin{{end}}
|
|
|
|
{{define "repo"}}
|
|
<li class="repo {{.TypeAsClassName}}">
|
|
<span class="glyph octicon octicon-{{.TypeAsOcticonName}}"></span>
|
|
<a href="{{.HTMLURL}}">{{.FullName}}</a>
|
|
<span class="vintage">{{.DisplayVintage}}</span>
|
|
</li>
|
|
{{end}}
|
|
|
|
{{define "body"}}
|
|
|
|
{{if .ReposError}}
|
|
{{.ReposError}}
|
|
{{else}}
|
|
{{len .Repos.AllRepos}} from {{len .Repos.OtherUserRepos}} other users and {{len .Repos.OrgRepos}} organizations
|
|
|
|
<div class="repos">
|
|
<h2>
|
|
<a href="https://github.com/{{.User.Login}}">
|
|
<img src="{{.User.AvatarURL}}" class="avatar">{{.User.Login}}</a>
|
|
</h2>
|
|
<ul>
|
|
{{range .Repos.UserRepos}}
|
|
{{template "repo" .}}
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
|
|
{{range .Repos.OtherUserRepos}}
|
|
<div class="repos">
|
|
<h2>
|
|
<a href="https://github.com/{{.User.Login}}">{{.User.Login}}</a>
|
|
</h2>
|
|
<ul>
|
|
{{range .Repos}}
|
|
{{template "repo" .}}
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
{{end}}
|
|
|
|
{{range .Repos.OrgRepos}}
|
|
<div class="repos">
|
|
<h2>
|
|
<a href="https://github.com/{{.Org.Login}}">{{.Org.Login}}</a>
|
|
</h2>
|
|
<ul>
|
|
{{range .Repos}}
|
|
{{template "repo" .}}
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|