本站源代码
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

160 lines
6.5KB

  1. <form class="ui comment form stackable grid" action="{{.Link}}" method="post">
  2. {{.CsrfTokenHtml}}
  3. {{if .Flash}}
  4. <div class="sixteen wide column">
  5. {{template "base/alert" .}}
  6. </div>
  7. {{end}}
  8. <div class="twelve wide column">
  9. <div class="ui comments">
  10. <div class="comment">
  11. <a class="avatar" href="{{.SignedUser.HomeLink}}">
  12. <img src="{{.SignedUser.RelAvatarLink}}">
  13. </a>
  14. <div class="ui segment content">
  15. <div class="field">
  16. <input name="title" id="issue_title" placeholder="{{.i18n.Tr "repo.milestones.title"}}" value="{{.title}}" tabindex="3" autofocus required>
  17. {{if .PageIsComparePull}}
  18. <div class="title_wip_desc">{{.i18n.Tr "repo.pulls.title_wip_desc" (index .PullRequestWorkInProgressPrefixes 0| Escape) | Safe}}</div>
  19. {{end}}
  20. </div>
  21. {{template "repo/issue/comment_tab" .}}
  22. <div class="text right">
  23. <button class="ui green button" tabindex="6">
  24. {{if .PageIsComparePull}}
  25. {{.i18n.Tr "repo.pulls.create"}}
  26. {{else}}
  27. {{.i18n.Tr "repo.issues.create"}}
  28. {{end}}
  29. </button>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="four wide column">
  36. <div class="ui segment metas">
  37. {{template "repo/issue/branch_selector_field" .}}
  38. <input id="label_ids" name="label_ids" type="hidden" value="{{.label_ids}}">
  39. <div class="ui {{if not .Labels}}disabled{{end}} floating jump select-label dropdown">
  40. <span class="text">
  41. <strong>{{.i18n.Tr "repo.issues.new.labels"}}</strong>
  42. <span class="octicon octicon-gear"></span>
  43. </span>
  44. <div class="filter menu" data-id="#label_ids">
  45. <div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_labels"}}</div>
  46. {{range .Labels}}
  47. <a class="{{if .IsChecked}}checked{{end}} item has-emoji" href="#" data-id="{{.ID}}" data-id-selector="#label_{{.ID}}"><span class="octicon {{if .IsChecked}}octicon-check{{end}}"></span><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}</a>
  48. {{end}}
  49. </div>
  50. </div>
  51. <div class="ui labels list">
  52. <span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span>
  53. {{range .Labels}}
  54. <a class="{{if not .IsChecked}}hide{{end}} item" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text has-emoji">{{.Name}}</span></a>
  55. {{end}}
  56. </div>
  57. <div class="ui divider"></div>
  58. <input id="milestone_id" name="milestone_id" type="hidden" value="{{.milestone_id}}">
  59. <div class="ui {{if not (or .OpenMilestones .ClosedMilestones)}}disabled{{end}} floating jump select-milestone dropdown">
  60. <span class="text">
  61. <strong>{{.i18n.Tr "repo.issues.new.milestone"}}</strong>
  62. <span class="octicon octicon-gear"></span>
  63. </span>
  64. <div class="menu">
  65. <div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_milestone"}}</div>
  66. {{if .OpenMilestones}}
  67. <div class="divider"></div>
  68. <div class="header">
  69. <i class="octicon octicon-milestone"></i>
  70. {{.i18n.Tr "repo.issues.new.open_milestone"}}
  71. </div>
  72. {{range .OpenMilestones}}
  73. <div class="item" data-id="{{.ID}}" data-href="{{$.RepoLink}}/issues?milestone={{.ID}}"> {{.Name}}</div>
  74. {{end}}
  75. {{end}}
  76. {{if .ClosedMilestones}}
  77. <div class="divider"></div>
  78. <div class="header">
  79. <i class="octicon octicon-milestone"></i>
  80. {{.i18n.Tr "repo.issues.new.closed_milestone"}}
  81. </div>
  82. {{range .ClosedMilestones}}
  83. <a class="item" data-id="{{.ID}}" data-href="{{$.RepoLink}}/issues?milestone={{.ID}}"> {{.Name}}</a>
  84. {{end}}
  85. {{end}}
  86. </div>
  87. </div>
  88. <div class="ui select-milestone list">
  89. <span class="no-select item {{if .Milestone}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_milestone"}}</span>
  90. <div class="selected">
  91. {{if .Milestone}}
  92. <a class="item" href="{{.RepoLink}}/issues?milestone={{.Milestone.ID}}"> {{.Milestone.Name}}</a>
  93. {{end}}
  94. </div>
  95. </div>
  96. <div class="ui divider"></div>
  97. <input id="assignee_ids" name="assignee_ids" type="hidden" value="{{.assignee_ids}}">
  98. <div class="ui {{if not .Assignees}}disabled{{end}} floating jump select-assignees dropdown">
  99. <span class="text">
  100. <strong>{{.i18n.Tr "repo.issues.new.assignees"}}</strong>
  101. <span class="octicon octicon-gear"></span>
  102. </span>
  103. <div class="filter menu" data-id="#assignee_ids">
  104. <div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_assignees"}}</div>
  105. {{range .Assignees}}
  106. <a class="item" href="#" data-id="{{.ID}}" data-id-selector="#assignee_{{.ID}}">
  107. <span class="octicon"></span>
  108. <span class="text">
  109. <img class="ui avatar image" src="{{.RelAvatarLink}}"> {{.GetDisplayName}}
  110. </span>
  111. </a>
  112. {{end}}
  113. </div>
  114. </div>
  115. <div class="ui assignees list">
  116. <span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">
  117. {{.i18n.Tr "repo.issues.new.no_assignees"}}
  118. </span>
  119. {{range .Assignees}}
  120. <a style="padding: 5px;color:rgba(0, 0, 0, 0.87);" class="hide item" id="assignee_{{.ID}}" href="{{$.RepoLink}}/issues?assignee={{.ID}}">
  121. <img class="ui avatar image" src="{{.RelAvatarLink}}" style="vertical-align: middle;">&nbsp;{{.GetDisplayName}}
  122. </a>
  123. {{end}}
  124. </div>
  125. <!-- input id="assignee_ids" name="assignee_ids" type="hidden" value="{{.assignee_id}}">
  126. <div class="ui {{if not .Assignees}}disabled{{end}} floating jump select-assignee dropdown">
  127. <span class="text">
  128. <strong>{{.i18n.Tr "repo.issues.new.assignees"}}</strong>
  129. <span class="octicon octicon-gear"></span>
  130. </span>
  131. <div class="filter menu">
  132. <div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_assignees"}}</div>
  133. {{range .Assignees}}
  134. <div class="item" data-id="{{.ID}}" data-href="{{$.RepoLink}}/issues?assignee={{.ID}}" data-avatar="{{.RelAvatarLink}}"><img src="{{.RelAvatarLink}}"> {{.Name}}</div>
  135. {{end}}
  136. </div>
  137. </div>
  138. <div class="ui select-assignee list">
  139. <span class="no-select item {{if .Assignee}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_assignees"}}</span>
  140. <div class="selected">
  141. {{if .Assignee}}
  142. <a class="item" href="{{.RepoLink}}/issues?assignee={{.Assignee.ID}}"><img class="ui avatar image" src="{{.Assignee.RelAvatarLink}}"> {{.Assignee.Name}}</a>
  143. {{end}}
  144. </div>
  145. </div>-->
  146. </div>
  147. </div>
  148. </form>
  149. {{if .PageIsComparePull}}
  150. <script>window.wipPrefixes = {{.PullRequestWorkInProgressPrefixes}}</script>
  151. {{end}}
上海开阖软件有限公司 沪ICP备12045867号-1