list.tmpl 2.2 KB

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