You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9 KiB

  1. {{template "base/head" .}}
  2. <div class="admin user">
  3. {{template "admin/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "admin.users.user_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
  8. <div class="ui right">
  9. <a class="ui black tiny button" href="{{AppSubUrl}}/admin/users/new">{{.i18n.Tr "admin.users.new_account"}}</a>
  10. </div>
  11. </h4>
  12. <div class="ui attached segment">
  13. {{template "admin/base/search" .}}
  14. </div>
  15. <div class="ui attached table segment">
  16. <table class="ui very basic striped table">
  17. <thead>
  18. <tr>
  19. <th>ID</th>
  20. <th>{{.i18n.Tr "admin.users.name"}}</th>
  21. <th>{{.i18n.Tr "email"}}</th>
  22. <th>{{.i18n.Tr "admin.users.activated"}}</th>
  23. <th>{{.i18n.Tr "admin.users.admin"}}</th>
  24. <th>{{.i18n.Tr "admin.users.repos"}}</th>
  25. <th>{{.i18n.Tr "admin.users.created"}}</th>
  26. <th>{{.i18n.Tr "admin.users.last_login"}}</th>
  27. <th>{{.i18n.Tr "admin.users.edit"}}</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {{range .Users}}
  32. <tr>
  33. <td>{{.ID}}</td>
  34. <td><a href="{{AppSubUrl}}/{{.Name}}">{{.Name}}</a></td>
  35. <td><span class="text truncate email">{{.Email}}</span></td>
  36. <td><i class="fa fa{{if .IsActive}}-check{{end}}-square-o"></i></td>
  37. <td><i class="fa fa{{if .IsAdmin}}-check{{end}}-square-o"></i></td>
  38. <td>{{.NumRepos}}</td>
  39. <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td>
  40. {{if .LastLoginUnix}}
  41. <td><span title="{{.LastLoginUnix.FormatLong}}">{{.LastLoginUnix.FormatShort}}</span></td>
  42. {{else}}
  43. <td><span>{{$.i18n.Tr "admin.users.never_login"}}</span></td>
  44. {{end}}
  45. <td><a href="{{$.Link}}/{{.ID}}"><i class="fa fa-pencil-square-o"></i></a></td>
  46. </tr>
  47. {{end}}
  48. </tbody>
  49. </table>
  50. </div>
  51. {{template "base/paginate" .}}
  52. </div>
  53. </div>
  54. {{template "base/footer" .}}