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.

list.tmpl 3.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
  2. <div class="admin-setting-content">
  3. <h4 class="ui top attached header">
  4. {{ctx.Locale.Tr "admin.orgs.org_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
  5. <div class="ui right">
  6. <a class="ui primary tiny button" href="{{AppSubUrl}}/org/create">{{ctx.Locale.Tr "admin.orgs.new_orga"}}</a>
  7. </div>
  8. </h4>
  9. <div class="ui attached segment">
  10. <div class="ui secondary filter menu tw-content-center gt-mx-0">
  11. <form class="ui form ignore-dirty tw-flex-1">
  12. {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.org_kind")}}
  13. </form>
  14. <!-- Sort -->
  15. <div class="ui dropdown type jump item gt-mr-0">
  16. <span class="text">
  17. {{ctx.Locale.Tr "repo.issues.filter_sort"}}
  18. </span>
  19. {{svg "octicon-triangle-down" 14 "dropdown icon"}}
  20. <div class="menu">
  21. <a class="{{if or (eq .SortType "oldest") (not .SortType)}}active {{end}}item" href="?sort=oldest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a>
  22. <a class="{{if eq .SortType "newest"}}active {{end}}item" href="?sort=newest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</a>
  23. <a class="{{if eq .SortType "alphabetically"}}active {{end}}item" href="?sort=alphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
  24. <a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="?sort=reversealphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
  25. <a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="?sort=recentupdate&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.recentupdate"}}</a>
  26. <a class="{{if eq .SortType "leastupdate"}}active {{end}}item" href="?sort=leastupdate&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.leastupdate"}}</a>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="ui attached table segment">
  32. <table class="ui very basic striped table unstackable">
  33. <thead>
  34. <tr>
  35. <th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" $.SortType false}}</th>
  36. <th data-sortt-asc="alphabetically" data-sortt-desc="reversealphabetically" data-sortt-default="true">
  37. {{ctx.Locale.Tr "admin.orgs.name"}}
  38. {{SortArrow "alphabetically" "reversealphabetically" $.SortType true}}
  39. </th>
  40. <th>{{ctx.Locale.Tr "admin.orgs.teams"}}</th>
  41. <th>{{ctx.Locale.Tr "admin.orgs.members"}}</th>
  42. <th>{{ctx.Locale.Tr "admin.users.repos"}}</th>
  43. <th data-sortt-asc="recentupdate" data-sortt-desc="leastupdate">
  44. {{ctx.Locale.Tr "admin.users.created"}}
  45. {{SortArrow "recentupdate" "leastupdate" $.SortType false}}
  46. </th>
  47. <th></th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. {{range .Users}}
  52. <tr>
  53. <td>{{.ID}}</td>
  54. <td>
  55. <a href="{{.HomeLink}}">{{.Name}}</a>
  56. {{if .Visibility.IsPrivate}}
  57. <span class="text gold">{{svg "octicon-lock"}}</span>
  58. {{end}}
  59. {{if eq .Type 3}}{{/* Reserved organization */}}
  60. <span class="ui mini label">{{ctx.Locale.Tr "admin.users.reserved"}}</span>
  61. {{end}}
  62. </td>
  63. <td>{{.NumTeams}}</td>
  64. <td>{{.NumMembers}}</td>
  65. <td>{{.NumRepos}}</td>
  66. <td>{{DateTime "short" .CreatedUnix}}</td>
  67. <td><a href="{{.OrganisationLink}}/settings" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a></td>
  68. </tr>
  69. {{end}}
  70. </tbody>
  71. </table>
  72. </div>
  73. {{template "base/paginate" .}}
  74. </div>
  75. {{template "admin/layout_footer" .}}