list.tmpl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. Repository Manage Panel (Total: {{.Total}}) 📁
  10. </h4>
  11. <div class="ui attached segment">
  12. {{template "admin/base/search" .}}
  13. </div>
  14. <div class="ui unstackable attached table segment">
  15. <table class="ui unstackable very basic striped table">
  16. <thead>
  17. <tr>
  18. <th>ID</th>
  19. <th>Owner</th>
  20. <th>Name</th>
  21. <th>Private</th>
  22. <th>Watches</th>
  23. <th>Stars</th>
  24. <th>Issues</th>
  25. <th>Size</th>
  26. <th>Created</th>
  27. <th>Op.</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {{range .Repos}}
  32. <tr>
  33. <td>{{.ID}}</td>
  34. <td>
  35. <a class="ui image label" href="{{AppSubURL}}/{{.Owner.Name}}">
  36. <img src="{{AppendAvatarSize .Owner.RelAvatarLink 40}}"> {{.Owner.Name}}
  37. </a>
  38. </td>
  39. <td>
  40. <a class="ui image label" href="{{AppSubURL}}/{{.Owner.Name}}/{{.Name}}">
  41. {{.Name}}
  42. </a>
  43. </td>
  44. <td class="admin indication">{{if .IsPrivate}}✔️{{else}}❌{{end}}</td>
  45. <td>{{.NumWatches}}</td>
  46. <td>{{.NumStars}}</td>
  47. <td>{{.NumIssues}}</td>
  48. <td>{{.Size | FileSize}}</td>
  49. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
  50. <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Current}}" data-id="{{.ID}}">🗑</a></td>
  51. </tr>
  52. {{end}}
  53. </tbody>
  54. </table>
  55. </div>
  56. {{template "admin/base/page" .}}
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="ui small basic delete modal">
  62. <div class="ui icon header">
  63. <i class="trash icon"></i>
  64. Delete This Repository
  65. </div>
  66. <div class="content">
  67. <p>Once you delete a repository, there is no going back. Please be certain.</p>
  68. - This operation will permanently delete everything in this repository, including Git data, issues, comments and collaborator access.<br>
  69. - All forks will become independent after deletion.<br>
  70. </div>
  71. {{template "base/delete_modal_actions" .}}
  72. </div>
  73. {{template "base/footer" .}}