users.tmpl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="gogs-body" class="container" data-page="admin">
  4. {{template "admin/nav" .}}
  5. <div id="gogs-admin-container" class="col-md-9">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. User Management
  9. </div>
  10. <div class="panel-body">
  11. <a href="/admin/users/new" class="btn btn-primary">New Account</a>
  12. <table class="table table-striped">
  13. <thead>
  14. <tr>
  15. <th>Id</th>
  16. <th>Name</th>
  17. <th>E-mail</th>
  18. <th>Actived</th>
  19. <th>Admin</th>
  20. <th>Repos</th>
  21. <th>Join</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {{range .Users}}
  26. <tr>
  27. <td>{{.Id}}</td>
  28. <td><a href="/user/{{.Name}}">{{.Name}}</a></td>
  29. <td>{{.Email}}</td>
  30. <td><i class="fa fa{{if .IsActive}}-check{{end}}-square-o"></i></td>
  31. <td><i class="fa fa{{if .IsAdmin}}-check{{end}}-square-o"></i></td>
  32. <td>{{.NumRepos}}</td>
  33. <td>{{DateFormat .Created "M d, Y"}}</td>
  34. </tr>
  35. {{end}}
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. {{template "base/footer" .}}