diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/dashboard.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/repos.tmpl | 24 | ||||
-rw-r--r-- | templates/admin/users.tmpl | 26 |
3 files changed, 51 insertions, 1 deletions
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 84456c85b8..6a914b65f7 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -16,7 +16,7 @@ </div> <div class="panel-body"> - Gogs database has 4 users, 3 repositories, 4 SSH keys. + Gogs database has <b>{{.Stats.Counter.User}}</b> users, <b>{{.Stats.Counter.PublicKey}}</b> SSH keys, <b>{{.Stats.Counter.Repo}}</b> repositories, <b>{{.Stats.Counter.Watch}}</b> watches, <b>{{.Stats.Counter.Action}}</b> actions, and <b>{{.Stats.Counter.Access}}</b> accesses. </div> </div> </div> diff --git a/templates/admin/repos.tmpl b/templates/admin/repos.tmpl index ec7f47e090..4522c66792 100644 --- a/templates/admin/repos.tmpl +++ b/templates/admin/repos.tmpl @@ -16,6 +16,30 @@ </div> <div class="panel-body"> + <table class="table table-striped"> + <thead> + <tr> + <th>Id</th> + <th>Name</th> + <th>Private</th> + <th>Watches</th> + <th>Forks</th> + <th>Created</th> + </tr> + </thead> + <tbody> + {{range .Repos}} + <tr> + <td>{{.Id}}</td> + <td>{{.Name}}</td> + <td><i class="fa fa{{if .Private}}-check{{end}}-square-o"></i></td> + <td>{{.NumWatches}}</td> + <td>{{.NumForks}}</td> + <td>{{DateFormat .Created "M d, Y"}}</td> + </tr> + {{end}} + </tbody> + </table> </div> </div> </div> diff --git a/templates/admin/users.tmpl b/templates/admin/users.tmpl index 8acf256d05..c087f268f2 100644 --- a/templates/admin/users.tmpl +++ b/templates/admin/users.tmpl @@ -16,6 +16,32 @@ </div> <div class="panel-body"> + <table class="table table-striped"> + <thead> + <tr> + <th>Id</th> + <th>Name</th> + <th>E-mail</th> + <th>Actived</th> + <th>Admin</th> + <th>Repos</th> + <th>Join</th> + </tr> + </thead> + <tbody> + {{range .Users}} + <tr> + <td>{{.Id}}</td> + <td>{{.Name}}</td> + <td>{{.Email}}</td> + <td><i class="fa fa{{if .IsActive}}-check{{end}}-square-o"></i></td> + <td><i class="fa fa{{if .IsAdmin}}-check{{end}}-square-o"></i></td> + <td>{{.NumRepos}}</td> + <td>{{DateFormat .Created "M d, Y"}}</td> + </tr> + {{end}} + </tbody> + </table> </div> </div> </div> |