mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
The changes to the repositories and organization APIs are live (https://developer.github.com/changes/2015-06-24-breaking-changes-to-organization-permissions-are-now-official/) and thus the scopes used for the public repositories only option are no longer sufficient to list organizations. However, it's no longer necessary to do that in the first place, since the user repository list now includes repos from organizations.
45 lines
992 B
HTML
45 lines
992 B
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
|
|
|
|
<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}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|