list.tmpl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. {{.i18n.Tr "admin.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
  10. </h4>
  11. <div class="ui attached segment">
  12. {{template "admin/base/search" .}}
  13. </div>
  14. <div class="ui attached table segment">
  15. <table class="ui very basic striped table">
  16. <thead>
  17. <tr>
  18. <th>ID</th>
  19. <th>{{.i18n.Tr "admin.repos.owner"}}</th>
  20. <th>{{.i18n.Tr "admin.repos.name"}}</th>
  21. <th>{{.i18n.Tr "admin.repos.private"}}</th>
  22. <th>{{.i18n.Tr "admin.repos.watches"}}</th>
  23. <th>{{.i18n.Tr "admin.repos.stars"}}</th>
  24. <th>{{.i18n.Tr "admin.repos.issues"}}</th>
  25. <th>{{.i18n.Tr "admin.repos.size"}}</th>
  26. <th>{{.i18n.Tr "admin.users.created"}}</th>
  27. <th>{{.i18n.Tr "admin.notices.op"}}</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {{range .Repos}}
  32. <tr>
  33. <td>{{.ID}}</td>
  34. <td><a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a></td>
  35. <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
  36. <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
  37. <td>{{.NumWatches}}</td>
  38. <td>{{.NumStars}}</td>
  39. <td>{{.NumIssues}}</td>
  40. <td>{{.Size | FileSize}}</td>
  41. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
  42. <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>
  43. </tr>
  44. {{end}}
  45. </tbody>
  46. </table>
  47. </div>
  48. {{template "admin/base/page" .}}
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="ui small basic delete modal">
  54. <div class="ui icon header">
  55. <i class="trash icon"></i>
  56. {{.i18n.Tr "repo.settings.delete"}}
  57. </div>
  58. <div class="content">
  59. <p>{{.i18n.Tr "repo.settings.delete_desc"}}</p>
  60. {{.i18n.Tr "repo.settings.delete_notices_2"}}<br>
  61. {{.i18n.Tr "repo.settings.delete_notices_fork_1"}}<br>
  62. </div>
  63. {{template "base/delete_modal_actions" .}}
  64. </div>
  65. {{template "base/footer" .}}