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.

53 lines
1.7 KiB

  1. {{template "base/head" .}}
  2. <div class="user settings">
  3. {{template "user/settings/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "settings.repos"}}
  8. </h4>
  9. <div class="ui attached segment">
  10. {{if .Repos}}
  11. <div class="ui middle aligned divided list">
  12. {{range .Repos}}
  13. <div class="item">
  14. <div class="content">
  15. {{if .IsPrivate}}
  16. <span class="text gold iconFloat"><i class="octicon octicon-lock"></i></span>
  17. {{else if .IsFork}}
  18. <span class="iconFloat"><i class="octicon octicon-repo-forked"></i></span>
  19. {{else if .IsMirror}}
  20. <span class="iconFloat"><i class="octicon octicon-repo-clone"></i></span>
  21. {{else}}
  22. <span class="iconFloat"><i class="octicon octicon-repo"></i></span>
  23. {{end}}
  24. <a class="name" href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{$.Owner.Name}}/{{.Name}}</a>
  25. <span>{{SizeFmt .Size}}</span>
  26. {{if .IsFork}}
  27. {{$.i18n.Tr "repo.forked_from"}}
  28. <span><a href="{{AppSubUrl}}/{{.BaseRepo.Owner.Name}}/{{.BaseRepo.Name}}">{{.BaseRepo.Owner.Name}}/{{.BaseRepo.Name}}</a></span>
  29. {{end}}
  30. </div>
  31. </div>
  32. {{end}}
  33. </div>
  34. {{else}}
  35. <div class="item">
  36. {{.i18n.Tr "settings.repos_none"}}
  37. </div>
  38. {{end}}
  39. </div>
  40. </div>
  41. </div>
  42. <div class="ui small basic delete modal">
  43. <div class="ui icon header">
  44. <i class="trash icon"></i>
  45. {{.i18n.Tr "settings.remove_account_link"}}
  46. </div>
  47. <div class="content">
  48. <p>{{.i18n.Tr "settings.remove_account_link_desc"}}</p>
  49. </div>
  50. {{template "base/delete_modal_actions" .}}
  51. </div>
  52. {{template "base/footer" .}}