mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Add files missing from 0157ac3c46.
This commit is contained in:
parent
0157ac3c46
commit
19f257f02e
3 changed files with 70 additions and 0 deletions
22
app/static/admin.css
Normal file
22
app/static/admin.css
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#users-table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#users-table th,
|
||||
#users-table td {
|
||||
padding: 2px 5px;
|
||||
}
|
||||
|
||||
#users-table th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#users-table td {
|
||||
border: solid 1px #eee;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#users-table .avatar {
|
||||
padding-right: 1px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
12
app/templates/shared/user.html
Normal file
12
app/templates/shared/user.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{{define "user"}}
|
||||
|
||||
<a href="https://github.com/{{.Login}}"
|
||||
title="{{.Name}}">
|
||||
<img src="{{.AvatarURL}}"
|
||||
width="20"
|
||||
height="20"
|
||||
border="0"
|
||||
class="avatar">{{.Login}}
|
||||
</a>
|
||||
|
||||
{{end}}
|
||||
36
app/templates/users-admin.html
Normal file
36
app/templates/users-admin.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{{define "title"}}Users Admin{{end}}
|
||||
|
||||
{{define "body"}}
|
||||
|
||||
<link rel="stylesheet" href="/static/admin.css">
|
||||
|
||||
<table id="users-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>User ID</th>
|
||||
<th>Username</th>
|
||||
<th>Email</th>
|
||||
<th>Frequency</th>
|
||||
<th>Repositories</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range .Users}}
|
||||
<tr>
|
||||
<td><a href="{{routeUrl "digest-admin"}}?user_id={{.GitHubUserId}}">{{.Account.GitHubUserId}}</a></td>
|
||||
<td>{{template "user" .User}}</td>
|
||||
<td>{{.EmailAddress}}</td>
|
||||
<td>{{.Account.Frequency}}</td>
|
||||
<td>
|
||||
{{if .ReposError}}
|
||||
{{.ReposError}}
|
||||
{{else}}
|
||||
{{len .Repos.AllRepos}} from {{len .Repos.OtherUserRepos}} other users and {{len .Repos.OrgRepos}} organizations
|
||||
{{end}}
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{end}}
|
||||
Loading…
Reference in a new issue