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.

70 lines
2.4 KiB

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 years ago
  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.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
  8. </h4>
  9. <div class="ui attached segment">
  10. {{template "admin/repo/search" .}}
  11. </div>
  12. <div class="ui attached table segment">
  13. <table class="ui very basic striped table">
  14. <thead>
  15. <tr>
  16. <th>ID</th>
  17. <th>{{.i18n.Tr "admin.repos.owner"}}</th>
  18. <th>{{.i18n.Tr "admin.repos.name"}}</th>
  19. <th>{{.i18n.Tr "admin.repos.private"}}</th>
  20. <th>{{.i18n.Tr "admin.repos.watches"}}</th>
  21. <th>{{.i18n.Tr "admin.repos.stars"}}</th>
  22. <th>{{.i18n.Tr "admin.repos.forks"}}</th>
  23. <th>{{.i18n.Tr "admin.repos.issues"}}</th>
  24. <th>{{.i18n.Tr "admin.repos.size"}}</th>
  25. <th>{{.i18n.Tr "admin.users.created"}}</th>
  26. <th>{{.i18n.Tr "admin.notices.op"}}</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {{range .Repos}}
  31. <tr>
  32. <td>{{.ID}}</td>
  33. <td>
  34. <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a>
  35. {{if .Owner.Visibility.IsPrivate}}
  36. <span class="text gold">{{svg "octicon-lock" 16}}</span>
  37. {{end}}
  38. </td>
  39. <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
  40. <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
  41. <td>{{.NumWatches}}</td>
  42. <td>{{.NumStars}}</td>
  43. <td>{{.NumForks}}</td>
  44. <td>{{.NumIssues}}</td>
  45. <td>{{SizeFmt .Size}}</td>
  46. <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td>
  47. <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a></td>
  48. </tr>
  49. {{end}}
  50. </tbody>
  51. </table>
  52. </div>
  53. {{template "base/paginate" .}}
  54. </div>
  55. </div>
  56. <div class="ui small basic delete modal">
  57. <div class="ui icon header">
  58. <i class="trash icon"></i>
  59. {{.i18n.Tr "repo.settings.delete"}}
  60. </div>
  61. <div class="content">
  62. <p>{{.i18n.Tr "repo.settings.delete_desc"}}</p>
  63. {{.i18n.Tr "repo.settings.delete_notices_2" `<span class="name"></span>` | Safe}}<br>
  64. {{.i18n.Tr "repo.settings.delete_notices_fork_1"}}<br>
  65. </div>
  66. {{template "base/delete_modal_actions" .}}
  67. </div>
  68. {{template "base/footer" .}}