list.tmpl 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="admin-wrapper">
  4. <div id="setting-wrapper" class="main-wrapper">
  5. <div id="admin-setting" class="container clear">
  6. {{template "admin/nav" .}}
  7. <div class="grid-4-5 left">
  8. <div class="setting-content">
  9. {{template "ng/base/alert" .}}
  10. <div id="setting-content">
  11. <div class="panel panel-radius">
  12. <div class="panel-header">
  13. <strong>{{.i18n.Tr "admin.users.user_manage_panel"}}</strong>
  14. </div>
  15. <div class="panel-body admin-panel">
  16. <a class="btn-blue btn-medium btn-link btn-radius" href="{{AppSubUrl}}/admin/users/new">{{.i18n.Tr "admin.users.new_account"}}</a>
  17. <div class="admin-table">
  18. <table class="table table-striped">
  19. <thead>
  20. <tr>
  21. <th>Id</th>
  22. <th>{{.i18n.Tr "admin.users.name"}}</th>
  23. <th>{{.i18n.Tr "email"}}</th>
  24. <th>{{.i18n.Tr "admin.users.activated"}}</th>
  25. <th>{{.i18n.Tr "admin.users.admin"}}</th>
  26. <th>{{.i18n.Tr "admin.users.repos"}}</th>
  27. <th>{{.i18n.Tr "admin.users.created"}}</th>
  28. <th>{{.i18n.Tr "admin.users.edit"}}</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. {{range .Users}}
  33. <tr>
  34. <td>{{.Id}}</td>
  35. <td><a href="{{AppSubUrl}}/{{.Name}}">{{.Name}}</a></td>
  36. <td>{{.Email}}</td>
  37. <td><i class="fa fa{{if .IsActive}}-check{{end}}-square-o"></i></td>
  38. <td><i class="fa fa{{if .IsAdmin}}-check{{end}}-square-o"></i></td>
  39. <td>{{.NumRepos}}</td>
  40. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created }}</span></td>
  41. <td><a href="{{AppSubUrl}}/admin/users/{{.Id}}"><i class="fa fa-pencil-square-o"></i></a></td>
  42. </tr>
  43. {{end}}
  44. </tbody>
  45. </table>
  46. {{if or .LastPageNum .NextPageNum}}
  47. <ul class="pagination">
  48. {{if .LastPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/users?p={{.LastPageNum}}">&laquo; {{.i18n.Tr "admin.prev"}}</a></li>{{end}}
  49. {{if .NextPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/users?p={{.NextPageNum}}">&raquo; {{.i18n.Tr "admin.next"}}</a></li>{{end}}
  50. </ul>
  51. {{end}}
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. {{template "ng/base/footer" .}}