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 1.6KB

Add Octicon SVG spritemap (#10107) * Add octicon SVG sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Static prefix Signed-off-by: jolheiser <john.olheiser@gmail.com> * SVG for all repo icons Signed-off-by: jolheiser <john.olheiser@gmail.com> * make vendor Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap out octicons Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move octicons to top of less imports Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix JS Signed-off-by: jolheiser <john.olheiser@gmail.com> * Definitely not a search/replace Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed regex Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move to more generic calls and webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * make svg -> make webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg-sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed a test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg from makefile Signed-off-by: jolheiser <john.olheiser@gmail.com> * Suggestions Signed-off-by: jolheiser <john.olheiser@gmail.com> * Attempt to fix test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert timetracking test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap .octicon for .svg in less Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add aria-hidden Signed-off-by: jolheiser <john.olheiser@gmail.com> * Replace mega-octicon Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix webpack globbing on Windows Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert Co-Authored-By: silverwind <me@silverwind.io> * Fix octions from upstream Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix Vue and missed JS function Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add JS helper and PWA Signed-off-by: jolheiser <john.olheiser@gmail.com> * Preload SVG Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <matti@mdranta.net>
4 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.orgs.org_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
  8. <div class="ui right">
  9. <a class="ui blue tiny button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "admin.orgs.new_orga"}}</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.orgs.name"}}</th>
  21. <th>{{.i18n.Tr "admin.orgs.teams"}}</th>
  22. <th>{{.i18n.Tr "admin.orgs.members"}}</th>
  23. <th>{{.i18n.Tr "admin.users.repos"}}</th>
  24. <th>{{.i18n.Tr "admin.users.created"}}</th>
  25. <th>{{.i18n.Tr "admin.users.edit"}}</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. {{range .Users}}
  30. <tr>
  31. <td>{{.ID}}</td>
  32. <td>
  33. <a href="{{.HomeLink}}">{{.Name}}</a>
  34. {{if .Visibility.IsPrivate}}
  35. <span class="text gold">{{svg "octicon-lock" 16}}</span>
  36. {{end}}
  37. </td>
  38. <td>{{.NumTeams}}</td>
  39. <td>{{.NumMembers}}</td>
  40. <td>{{.NumRepos}}</td>
  41. <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td>
  42. <td><a href="{{AppSubUrl}}/org/{{.Name}}/settings"><i class="fa fa-pencil-square-o"></i></a></td>
  43. </tr>
  44. {{end}}
  45. </tbody>
  46. </table>
  47. </div>
  48. {{template "base/paginate" .}}
  49. </div>
  50. </div>
  51. {{template "base/footer" .}}