repositories.tmpl 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {{template "base/head" .}}
  2. <div class="user settings repositories">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "user/settings/navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "settings.repos"}}
  10. </h4>
  11. <div class="ui attached segment repos">
  12. <div class="ui middle aligned divided list">
  13. {{range .Repos}}
  14. <div class="item">
  15. <span class="text light grey">
  16. {{if .IsPrivate}}
  17. <span class="text gold"><i class="octicon octicon-lock"></i></span>
  18. {{else if .IsFork}}
  19. <i class="octicon octicon-repo-forked"></i>
  20. {{else if .IsMirror}}
  21. <i class="octicon octicon-repo-clone"></i>
  22. {{else}}
  23. <i class="octicon octicon-repo"></i>
  24. {{end}}
  25. </span>
  26. <a href="{{AppSubURL}}/{{.Owner.Name}}/{{.Name}}">
  27. {{.Owner.Name}}/{{.Name}}
  28. </a>
  29. <span class="ui text light grey">{{.Size | FileSize}}</span>
  30. {{if not (eq .OwnerID $.LoggedUserID)}}
  31. <div class="right floated">
  32. <a class="ui red tiny basic button inline delete-button" href="" data-url="{{$.Link}}/leave" data-id="{{.ID}}">{{$.i18n.Tr "settings.repos.leave"}}</a>
  33. </div>
  34. {{end}}
  35. </div>
  36. {{end}}
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="ui small basic delete modal">
  44. <div class="ui icon header">
  45. {{.i18n.Tr "settings.repos.leave_title"}}
  46. </div>
  47. <div class="content">
  48. <p>{{.i18n.Tr "settings.repos.leave_desc"}}</p>
  49. </div>
  50. {{template "base/delete_modal_actions" .}}
  51. </div>
  52. {{template "base/footer" .}}