list.tmpl 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.orgs.org_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
  10. </h4>
  11. <div class="ui attached table segment">
  12. <table class="ui very basic striped table">
  13. <thead>
  14. <tr>
  15. <th>ID</th>
  16. <th>{{.i18n.Tr "admin.orgs.name"}}</th>
  17. <th>{{.i18n.Tr "admin.orgs.teams"}}</th>
  18. <th>{{.i18n.Tr "admin.orgs.members"}}</th>
  19. <th>{{.i18n.Tr "admin.users.repos"}}</th>
  20. <th>{{.i18n.Tr "admin.users.created"}}</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. {{range .Orgs}}
  25. <tr>
  26. <td>{{.Id}}</td>
  27. <td><a href="{{.HomeLink}}">{{.Name}}</a></td>
  28. <td>{{.NumTeams}}</td>
  29. <td>{{.NumMembers}}</td>
  30. <td>{{.NumRepos}}</td>
  31. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
  32. </tr>
  33. {{end}}
  34. </tbody>
  35. </table>
  36. </div>
  37. {{with .Page}}
  38. {{if gt .TotalPages 1}}
  39. <div class="center page buttons">
  40. <div class="ui borderless pagination menu">
  41. <a class="{{if .IsFirst}}disabled{{end}} item" href="{{$.Link}}"><i class="angle double left icon"></i> {{$.i18n.Tr "admin.first_page"}}</a>
  42. <a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.Link}}?page={{.Previous}}"{{end}}>
  43. <i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}}
  44. </a>
  45. {{range .Pages}}
  46. {{if eq .Num -1}}
  47. <a class="disabled item">...</a>
  48. {{else}}
  49. <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}"{{end}}>{{.Num}}</a>
  50. {{end}}
  51. {{end}}
  52. <a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}"{{end}}>
  53. {{$.i18n.Tr "repo.issues.next"}}&nbsp;<i class="icon right arrow"></i>
  54. </a>
  55. <a class="{{if .IsLast}}disabled{{end}} item" href="{{$.Link}}?page={{.TotalPages}}">{{$.i18n.Tr "admin.last_page"}}&nbsp;<i class="angle double right icon"></i></a>
  56. </div>
  57. </div>
  58. {{end}}
  59. {{end}}
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. {{template "base/footer" .}}