list.tmpl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. User Manage Panel (Total: {{.Total}}) 👦
  10. <div class="ui right">
  11. <a class="ui black tiny button" href="{{AppSubURL}}/admin/users/new">Create 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>Name</th>
  23. <th>Email</th>
  24. <th>Repos</th>
  25. <th>Created</th>
  26. <th>Edit</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {{range .Users}}
  31. <tr>
  32. <td>{{.ID}}</td>
  33. <td>
  34. <a class="ui image label {{if .Suspended}}red{{end}}" href="{{AppSubURL}}/{{.Name}}">
  35. <img src="{{AppendAvatarSize .RelAvatarLink 40}}"> {{.Name}}
  36. </a>
  37. <br/>
  38. {{if .IsVerified}}<i class="admin-badge verified octicon octicon-verified"></i>{{end}}
  39. {{if .IsBeta}}<i class="admin-badge developer octicon octicon-circuit-board"></i>{{end}}
  40. {{if .IsStaff}}<i class="admin-badge isstaff octicon octicon-tools"></i>{{end}}
  41. {{if .GitoteDeveloper}}<i class="admin-badge gitotedeveloper octicon octicon-jersey"></i>{{end}}
  42. </td>
  43. <td><span class="text truncate email">{{.Email}}</span></td>
  44. <td>{{.NumRepos}}</td>
  45. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created }}</span></td>
  46. <td><a href="{{$.Link}}/{{.ID}}">🖊</a></td>
  47. </tr>
  48. {{end}}
  49. </tbody>
  50. </table>
  51. </div>
  52. {{template "admin/base/page" .}}
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. {{template "base/footer" .}}