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.

63 lines
2.1 KiB

  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/base/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.issues"}}</th>
  23. <th>{{.i18n.Tr "admin.repos.size"}}</th>
  24. <th>{{.i18n.Tr "admin.users.created"}}</th>
  25. <th>{{.i18n.Tr "admin.notices.op"}}</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. {{range .Repos}}
  30. <tr>
  31. <td>{{.ID}}</td>
  32. <td><a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a></td>
  33. <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
  34. <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
  35. <td>{{.NumWatches}}</td>
  36. <td>{{.NumStars}}</td>
  37. <td>{{.NumIssues}}</td>
  38. <td>{{SizeFmt .Size}}</td>
  39. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
  40. <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Current}}" data-id="{{.ID}}"><i class="trash icon text red"></i></a></td>
  41. </tr>
  42. {{end}}
  43. </tbody>
  44. </table>
  45. </div>
  46. {{template "base/paginate" .}}
  47. </div>
  48. </div>
  49. <div class="ui small basic delete modal">
  50. <div class="ui icon header">
  51. <i class="trash icon"></i>
  52. {{.i18n.Tr "repo.settings.delete"}}
  53. </div>
  54. <div class="content">
  55. <p>{{.i18n.Tr "repo.settings.delete_desc"}}</p>
  56. {{.i18n.Tr "repo.settings.delete_notices_2"}}<br>
  57. {{.i18n.Tr "repo.settings.delete_notices_fork_1"}}<br>
  58. </div>
  59. {{template "base/delete_modal_actions" .}}
  60. </div>
  61. {{template "base/footer" .}}