Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

list.tmpl 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {{template "base/head" .}}
  2. <div class="repository milestones">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div class="navbar">
  6. {{template "repo/issue/navbar" .}}
  7. {{if and .CanWriteProjects (not .Repository.IsArchived)}}
  8. <div class="ui right">
  9. <a class="ui green button" href="{{$.Link}}/new">{{.i18n.Tr "repo.projects.new"}}</a>
  10. </div>
  11. {{end}}
  12. </div>
  13. <div class="ui divider"></div>
  14. {{template "base/alert" .}}
  15. <div class="ui tiny basic buttons">
  16. <a class="ui {{if not .IsShowClosed}}green active{{end}} basic button" href="{{.RepoLink}}/projects?state=open">
  17. {{svg "octicon-project"}}
  18. {{.i18n.Tr "repo.issues.open_tab" .OpenCount}}
  19. </a>
  20. <a class="ui {{if .IsShowClosed}}red active{{end}} basic button" href="{{.RepoLink}}/projects?state=closed">
  21. {{svg "octicon-check"}}
  22. {{.i18n.Tr "repo.milestones.close_tab" .ClosedCount}}
  23. </a>
  24. </div>
  25. <div class="ui right floated secondary filter menu">
  26. <!-- Sort -->
  27. <div class="ui dropdown type jump item">
  28. <span class="text">
  29. {{.i18n.Tr "repo.issues.filter_sort"}}
  30. {{svg "octicon-triangle-down" 14 "dropdown icon"}}
  31. </span>
  32. <div class="menu">
  33. <a class="{{if eq .SortType "oldest"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&sort=oldest&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_sort.oldest"}}</a>
  34. <a class="{{if eq .SortType "recentupdate"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&sort=recentupdate&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_sort.recentupdate"}}</a>
  35. <a class="{{if eq .SortType "leastupdate"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&sort=leastupdate&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_sort.leastupdate"}}</a>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="milestone list">
  40. {{range .Projects}}
  41. <li class="item">
  42. {{svg "octicon-project"}} <a href="{{$.RepoLink}}/projects/{{.ID}}">{{.Title}}</a>
  43. <div class="meta">
  44. {{ $closedDate:= TimeSinceUnix .ClosedDateUnix $.Lang }}
  45. {{if .IsClosed }}
  46. {{svg "octicon-clock"}} {{$.i18n.Tr "repo.milestones.closed" $closedDate|Str2html}}
  47. {{end}}
  48. <span class="issue-stats">
  49. {{svg "octicon-issue-opened"}} {{$.i18n.Tr "repo.issues.open_tab" .NumOpenIssues}}
  50. {{svg "octicon-issue-closed"}} {{$.i18n.Tr "repo.issues.close_tab" .NumClosedIssues}}
  51. </span>
  52. </div>
  53. {{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}}
  54. <div class="ui right operate">
  55. <a href="{{$.Link}}/{{.ID}}/edit" data-id={{.ID}} data-title={{.Title}}>{{svg "octicon-pencil"}} {{$.i18n.Tr "repo.issues.label_edit"}}</a>
  56. {{if .IsClosed}}
  57. <a class="link-action" href data-url="{{$.Link}}/{{.ID}}/open">{{svg "octicon-check"}} {{$.i18n.Tr "repo.projects.open"}}</a>
  58. {{else}}
  59. <a class="link-action" href data-url="{{$.Link}}/{{.ID}}/close">{{svg "octicon-skip"}} {{$.i18n.Tr "repo.projects.close"}}</a>
  60. {{end}}
  61. <a class="delete-button" href="#" data-url="{{$.RepoLink}}/projects/{{.ID}}/delete" data-id="{{.ID}}">{{svg "octicon-trashcan"}} {{$.i18n.Tr "repo.issues.label_delete"}}</a>
  62. </div>
  63. {{end}}
  64. {{if .Description}}
  65. <div class="content">
  66. {{.RenderedContent|Str2html}}
  67. </div>
  68. {{end}}
  69. </li>
  70. {{end}}
  71. {{template "base/paginate" .}}
  72. </div>
  73. </div>
  74. </div>
  75. {{if or .CanWriteIssues .CanWritePulls}}
  76. <div class="ui small basic delete modal">
  77. <div class="ui icon header">
  78. {{svg "octicon-trashcan"}}
  79. {{.i18n.Tr "repo.projects.deletion"}}
  80. </div>
  81. <div class="content">
  82. <p>{{.i18n.Tr "repo.projects.deletion_desc"}}</p>
  83. </div>
  84. <div class="actions">
  85. <div class="ui red basic inverted cancel button">
  86. <i class="remove icon"></i>
  87. {{.i18n.Tr "modal.no"}}
  88. </div>
  89. <div class="ui green basic inverted ok button">
  90. <i class="checkmark icon"></i>
  91. {{.i18n.Tr "modal.yes"}}
  92. </div>
  93. </div>
  94. </div>
  95. {{end}}
  96. {{template "base/footer" .}}