list.tmpl 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. <th>{{.i18n.Tr "admin.users.edit"}}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {{range .Orgs}}
  26. <tr>
  27. <td>{{.Id}}</td>
  28. <td><a href="{{.HomeLink}}">{{.Name}}</a></td>
  29. <td>{{.NumTeams}}</td>
  30. <td>{{.NumMembers}}</td>
  31. <td>{{.NumRepos}}</td>
  32. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
  33. <td><a href="{{AppSubUrl}}/org/{{.Name}}/settings"><i class="fa fa-pencil-square-o"></i></a></td>
  34. </tr>
  35. {{end}}
  36. </tbody>
  37. </table>
  38. </div>
  39. {{with .Page}}
  40. {{if gt .TotalPages 1}}
  41. <div class="center page buttons">
  42. <div class="ui borderless pagination menu">
  43. <a class="{{if .IsFirst}}disabled{{end}} item" href="{{$.Link}}"><i class="angle double left icon"></i> {{$.i18n.Tr "admin.first_page"}}</a>
  44. <a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.Link}}?page={{.Previous}}"{{end}}>
  45. <i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}}
  46. </a>
  47. {{range .Pages}}
  48. {{if eq .Num -1}}
  49. <a class="disabled item">...</a>
  50. {{else}}
  51. <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}"{{end}}>{{.Num}}</a>
  52. {{end}}
  53. {{end}}
  54. <a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}"{{end}}>
  55. {{$.i18n.Tr "repo.issues.next"}}&nbsp;<i class="icon right arrow"></i>
  56. </a>
  57. <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>
  58. </div>
  59. </div>
  60. {{end}}
  61. {{end}}
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. {{template "base/footer" .}}