list.tmpl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{template "base/head" .}}
  2. <div class="admin user">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "admin/navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "admin.users.user_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
  10. <div class="ui right">
  11. <a class="ui black tiny button" href="{{AppSubURL}}/admin/users/new">{{.i18n.Tr "admin.users.new_account"}}</a>
  12. </div>
  13. </h4>
  14. <div class="ui attached segment">
  15. {{template "admin/base/search" .}}
  16. </div>
  17. <div class="ui unstackable attached table segment">
  18. <table class="ui unstackable very basic striped table">
  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><span class="text truncate email">{{.Email}}</span></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="{{$.Link}}/{{.ID}}"><i class="fa fa-pencil-square-o"></i></a></td>
  42. </tr>
  43. {{end}}
  44. </tbody>
  45. </table>
  46. </div>
  47. {{template "admin/base/page" .}}
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. {{template "base/footer" .}}