本站源代码
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.

420 lines
19KB

  1. {{ template "base/alert" }}
  2. {{range .Issue.Comments}}
  3. {{ $createdStr:= TimeSinceUnix .CreatedUnix $.Lang }}
  4. <!-- 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE_REF, 4 = COMMIT_REF,
  5. 5 = COMMENT_REF, 6 = PULL_REF, 7 = COMMENT_LABEL, 12 = START_TRACKING,
  6. 13 = STOP_TRACKING, 14 = ADD_TIME_MANUAL, 16 = ADDED_DEADLINE, 17 = MODIFIED_DEADLINE,
  7. 18 = REMOVED_DEADLINE, 19 = ADD_DEPENDENCY, 20 = REMOVE_DEPENDENCY, 21 = CODE,
  8. 22 = REVIEW, 23 = ISSUE_LOCKED, 24 = ISSUE_UNLOCKED -->
  9. {{if eq .Type 0}}
  10. <div class="comment" id="{{.HashTag}}">
  11. {{if .OriginalAuthor }}
  12. <span class="avatar"><img src="/img/avatar_default.png"></span>
  13. {{else}}
  14. <a class="avatar" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>
  15. <img src="{{.Poster.RelAvatarLink}}">
  16. </a>
  17. {{end}}
  18. <div class="content">
  19. <div class="ui top attached header">
  20. {{if .OriginalAuthor }}
  21. <span class="text black"><i class="fa {{MigrationIcon $.Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> {{ .OriginalAuthor }}</span><span class="text grey"> {{$.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}} {{if $.Repository.OriginalURL}}</span><span class="text migrate">({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}</span>
  22. {{else}}
  23. <span class="text grey"><a {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}</span>
  24. {{end}}
  25. {{if not $.Repository.IsArchived}}
  26. <div class="ui right actions">
  27. {{if gt .ShowTag 0}}
  28. <div class="item tag">
  29. {{if eq .ShowTag 1}}
  30. {{$.i18n.Tr "repo.issues.poster"}}
  31. {{else if eq .ShowTag 2}}
  32. {{$.i18n.Tr "repo.issues.collaborator"}}
  33. {{else if eq .ShowTag 3}}
  34. {{$.i18n.Tr "repo.issues.owner"}}
  35. {{end}}
  36. </div>
  37. {{end}}
  38. {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) }}
  39. {{if or $.Permission.IsAdmin (eq .Poster.ID $.SignedUserID)}}
  40. <div class="item action">
  41. <a class="edit-content" href="#"><i class="octicon octicon-pencil"></i></a>
  42. <a class="delete-comment" href="#" data-comment-id={{.HashTag}} data-url="{{$.RepoLink}}/comments/{{.ID}}/delete" data-locale="{{$.i18n.Tr "repo.issues.delete_comment_confirm"}}"><i class="octicon octicon-x"></i></a>
  43. </div>
  44. {{end}}
  45. </div>
  46. {{end}}
  47. </div>
  48. <div class="ui attached segment">
  49. <div class="render-content markdown has-emoji">
  50. {{if .RenderedContent}}
  51. {{.RenderedContent|Str2html}}
  52. {{else}}
  53. <span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
  54. {{end}}
  55. </div>
  56. <div class="raw-content hide">{{.Content}}</div>
  57. <div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.RepoLink}}/comments/{{.ID}}" data-context="{{$.RepoLink}}" data-attachment-url="{{$.RepoLink}}/comments/{{.ID}}/attachments"></div>
  58. </div>
  59. {{$reactions := .Reactions.GroupByType}}
  60. {{if $reactions}}
  61. <div class="ui attached segment reactions">
  62. {{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) "Reactions" $reactions }}
  63. </div>
  64. {{end}}
  65. {{if .Attachments}}
  66. <div class="ui bottom attached segment">
  67. <div class="ui small images">
  68. {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Attachments}}
  69. </div>
  70. </div>
  71. {{end}}
  72. </div>
  73. </div>
  74. {{else if eq .Type 1}}
  75. <div class="event" id="{{.HashTag}}">
  76. <span class="octicon octicon-primitive-dot"></span>
  77. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  78. <img src="{{.Poster.RelAvatarLink}}">
  79. </a>
  80. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.reopened_at" .EventTag $createdStr | Safe}}</span>
  81. </div>
  82. {{else if eq .Type 2}}
  83. <div class="event" id="{{.HashTag}}">
  84. <span class="octicon octicon-circle-slash issue-symbol"></span>
  85. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  86. <img src="{{.Poster.RelAvatarLink}}">
  87. </a>
  88. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}}</span>
  89. </div>
  90. {{else if or (eq .Type 3) (eq .Type 5) (eq .Type 6)}}
  91. <div class="event" id="{{.HashTag}}">
  92. <span class="octicon octicon-bookmark"></span>
  93. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  94. <img src="{{.Poster.RelAvatarLink}}">
  95. </a>
  96. {{if eq .RefAction 3}}<del>{{end}}
  97. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  98. {{if (eq .RefRepoID .Issue.RepoID)}}
  99. {{if .Issue.IsPull}}
  100. <a href="{{.RefCommentHTMLURL}}">{{$.i18n.Tr "repo.issues.ref_pull_at" $createdStr | Safe}}</a>
  101. {{else}}
  102. <a href="{{.RefCommentHTMLURL}}">{{$.i18n.Tr "repo.issues.ref_issue_at" $createdStr | Safe}}</a>
  103. {{end}}
  104. {{else}}
  105. {{if .Issue.IsPull}}
  106. <a href="{{.RefCommentHTMLURL}}">{{$.i18n.Tr "repo.issues.ref_pull_ext_at" .RefRepo.FullName $createdStr | Safe}}</a>
  107. {{else}}
  108. <a href="{{.RefCommentHTMLURL}}">{{$.i18n.Tr "repo.issues.ref_issue_ext_at" .RefRepo.FullName $createdStr | Safe}}</a>
  109. {{end}}
  110. {{end}}
  111. </span>
  112. {{if eq .RefAction 3}}</del>{{end}}
  113. <div class="detail">
  114. <span class="text grey"><a href="{{.RefIssueHTMLURL}}"><b>{{.RefIssueTitle | Str2html}}</b> {{.RefIssueIdent | Str2html}}</a></span>
  115. </div>
  116. </div>
  117. {{else if eq .Type 4}}
  118. <div class="event" id="{{.HashTag}}">
  119. <span class="octicon octicon-bookmark"></span>
  120. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  121. <img src="{{.Poster.RelAvatarLink}}">
  122. </a>
  123. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}}</span>
  124. <div class="detail">
  125. <span class="octicon octicon-git-commit"></span>
  126. <span class="text grey">{{.Content | Str2html}}</span>
  127. </div>
  128. </div>
  129. {{else if eq .Type 7}}
  130. {{if .Label}}
  131. <div class="event" id="{{.HashTag}}">
  132. <span class="octicon octicon-primitive-dot"></span>
  133. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  134. <img src="{{.Poster.RelAvatarLink}}">
  135. </a>
  136. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  137. {{if .Content}}{{$.i18n.Tr "repo.issues.add_label_at" .Label.ForegroundColor .Label.Color (.Label.Name|Escape) $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_label_at" .Label.ForegroundColor .Label.Color (.Label.Name|Escape) $createdStr | Safe}}{{end}}</span>
  138. </div>
  139. {{end}}
  140. {{else if eq .Type 8}}
  141. <div class="event" id="{{.HashTag}}">
  142. <span class="octicon octicon-primitive-dot"></span>
  143. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  144. <img src="{{.Poster.RelAvatarLink}}">
  145. </a>
  146. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  147. {{if gt .OldMilestoneID 0}}{{if gt .MilestoneID 0}}{{$.i18n.Tr "repo.issues.change_milestone_at" (.OldMilestone.Name|Escape) (.Milestone.Name|Escape) $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_milestone_at" (.OldMilestone.Name|Escape) $createdStr | Safe}}{{end}}{{else if gt .MilestoneID 0}}{{$.i18n.Tr "repo.issues.add_milestone_at" (.Milestone.Name|Escape) $createdStr | Safe}}{{end}}</span>
  148. </div>
  149. {{else if eq .Type 9}}
  150. <div class="event" id="{{.HashTag}}">
  151. <span class="octicon octicon-primitive-dot"></span>
  152. {{if gt .AssigneeID 0}}
  153. {{if .RemovedAssignee}}
  154. <a class="ui avatar image" href="{{.Assignee.HomeLink}}">
  155. <img src="{{.Assignee.RelAvatarLink}}">
  156. </a>
  157. <span class="text grey">
  158. <a href="{{.Assignee.HomeLink}}">{{.Assignee.GetDisplayName}}</a>
  159. {{ if eq .Poster.ID .Assignee.ID }}
  160. {{$.i18n.Tr "repo.issues.remove_self_assignment" $createdStr | Safe}}
  161. {{ else }}
  162. {{$.i18n.Tr "repo.issues.remove_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
  163. {{ end }}
  164. </span>
  165. {{else}}
  166. <a class="ui avatar image" href="{{.Assignee.HomeLink}}">
  167. <img src="{{.Assignee.RelAvatarLink}}">
  168. </a>
  169. <span class="text grey">
  170. <a href="{{.Assignee.HomeLink}}">{{.Assignee.GetDisplayName}}</a>
  171. {{if eq .Poster.ID .AssigneeID}}
  172. {{$.i18n.Tr "repo.issues.self_assign_at" $createdStr | Safe}}
  173. {{else}}
  174. {{$.i18n.Tr "repo.issues.add_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
  175. {{end}}
  176. </span>
  177. {{end}}
  178. {{end}}
  179. </div>
  180. {{else if eq .Type 10}}
  181. <div class="event" id="{{.HashTag}}">
  182. <span class="octicon octicon-primitive-dot"></span>
  183. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  184. <img src="{{.Poster.RelAvatarLink}}">
  185. </a>
  186. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  187. {{$.i18n.Tr "repo.issues.change_title_at" (.OldTitle|Escape) (.NewTitle|Escape) $createdStr | Safe}}
  188. </span>
  189. </div>
  190. {{else if eq .Type 11}}
  191. <div class="event" id="{{.HashTag}}">
  192. <span class="octicon octicon-primitive-dot"></span>
  193. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  194. <img src="{{.Poster.RelAvatarLink}}">
  195. </a>
  196. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  197. {{$.i18n.Tr "repo.issues.delete_branch_at" (.CommitSHA|Escape) $createdStr | Safe}}
  198. </span>
  199. </div>
  200. {{else if eq .Type 12}}
  201. <div class="event" id="{{.HashTag}}">
  202. <span class="octicon octicon-primitive-dot"></span>
  203. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  204. <img src="{{.Poster.RelAvatarLink}}">
  205. </a>
  206. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.start_tracking_history" $createdStr | Safe}}</span>
  207. </div>
  208. {{else if eq .Type 13}}
  209. <div class="event" id="{{.HashTag}}">
  210. <span class="octicon octicon-primitive-dot"></span>
  211. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  212. <img src="{{.Poster.RelAvatarLink}}">
  213. </a>
  214. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.stop_tracking_history" $createdStr | Safe}}</span>
  215. <div class="detail">
  216. <span class="octicon octicon-clock"></span>
  217. <span class="text grey">{{.Content}}</span>
  218. </div>
  219. </div>
  220. {{else if eq .Type 14}}
  221. <div class="event" id="{{.HashTag}}">
  222. <span class="octicon octicon-primitive-dot"></span>
  223. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  224. <img src="{{.Poster.RelAvatarLink}}">
  225. </a>
  226. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.add_time_history" $createdStr | Safe}}</span>
  227. <div class="detail">
  228. <span class="octicon octicon-clock"></span>
  229. <span class="text grey">{{.Content}}</span>
  230. </div>
  231. </div>
  232. {{else if eq .Type 15}}
  233. <div class="event" id="{{.HashTag}}">
  234. <span class="octicon octicon-primitive-dot"></span>
  235. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  236. <img src="{{.Poster.RelAvatarLink}}">
  237. </a>
  238. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.cancel_tracking_history" $createdStr | Safe}}</span>
  239. </div>
  240. {{else if eq .Type 16}}
  241. <div class="event" id="{{.HashTag}}">
  242. <span class="octicon octicon-primitive-dot"></span>
  243. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  244. <img src="{{.Poster.RelAvatarLink}}">
  245. </a>
  246. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  247. {{$.i18n.Tr "repo.issues.due_date_added" .Content $createdStr | Safe}}
  248. </span>
  249. </div>
  250. {{else if eq .Type 17}}
  251. <div class="event" id="{{.HashTag}}">
  252. <span class="octicon octicon-primitive-dot"></span>
  253. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  254. <img src="{{.Poster.RelAvatarLink}}">
  255. </a>
  256. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  257. {{$.i18n.Tr "repo.issues.due_date_modified" (.Content | ParseDeadline) $createdStr | Safe}}
  258. </span>
  259. </div>
  260. {{else if eq .Type 18}}
  261. <div class="event" id="{{.HashTag}}">
  262. <span class="octicon octicon-primitive-dot"></span>
  263. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  264. <img src="{{.Poster.RelAvatarLink}}">
  265. </a>
  266. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  267. {{$.i18n.Tr "repo.issues.due_date_remove" .Content $createdStr | Safe}}
  268. </span>
  269. </div>
  270. {{else if eq .Type 19}}
  271. <div class="event" id="{{.HashTag}}">
  272. <span class="octicon octicon-primitive-dot"></span>
  273. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  274. <img src="{{.Poster.RelAvatarLink}}">
  275. </a>
  276. <span class="text grey">
  277. {{$.i18n.Tr "repo.issues.dependency.added_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
  278. </span>
  279. <div class="detail">
  280. <span class="octicon octicon-plus"></span>
  281. <span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span>
  282. </div>
  283. </div>
  284. {{else if eq .Type 20}}
  285. <div class="event" id="{{.HashTag}}">
  286. <span class="octicon octicon-primitive-dot"></span>
  287. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  288. <img src="{{.Poster.RelAvatarLink}}">
  289. </a>
  290. <span class="text grey">
  291. {{$.i18n.Tr "repo.issues.dependency.removed_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
  292. </span>
  293. <div class="detail">
  294. <span class="text grey octicon octicon-trashcan"></span>
  295. <span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span>
  296. </div>
  297. </div>
  298. {{else if eq .Type 22}}
  299. <div class="event" id="{{.HashTag}}">
  300. <span class="octicon octicon-{{.Review.Type.Icon}} issue-symbol"></span>
  301. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  302. <img src="{{.Poster.RelAvatarLink}}">
  303. </a>
  304. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  305. {{if eq .Review.Type 1}}
  306. {{$.i18n.Tr "repo.issues.review.approve" $createdStr | Safe}}
  307. {{else if eq .Review.Type 2}}
  308. {{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}}
  309. {{else if eq .Review.Type 3}}
  310. {{$.i18n.Tr "repo.issues.review.reject" $createdStr | Safe}}
  311. {{else}}
  312. {{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}}
  313. {{end}}
  314. </span>
  315. {{if .Content}}
  316. <div class="detail">
  317. <span class="octicon octicon-quote"></span>
  318. <span class="text grey">{{.Content}}</span>
  319. </div>
  320. {{end}}
  321. {{ range $filename, $lines := .Review.CodeComments}}
  322. {{range $line, $comms := $lines}}
  323. <div class="ui segments">
  324. <div class="ui segment">
  325. {{$invalid := (index $comms 0).Invalidated}}
  326. {{if $invalid}}
  327. <button id="show-outdated-{{(index $comms 0).ID}}" data-comment="{{(index $comms 0).ID}}" class="ui compact right labeled button show-outdated">
  328. <i class="octicon octicon-fold"></i>
  329. {{$.i18n.Tr "repo.issues.review.show_outdated"}}
  330. </button>
  331. <button id="hide-outdated-{{(index $comms 0).ID}}" data-comment="{{(index $comms 0).ID}}" class="hide ui compact right labeled button hide-outdated">
  332. <i class="octicon octicon-fold"></i>
  333. {{$.i18n.Tr "repo.issues.review.hide_outdated"}}
  334. </button>
  335. {{end}}
  336. <a href="{{(index $comms 0).CodeCommentURL}}" class="file-comment">{{$filename}}</a>
  337. </div>
  338. {{$diff := (CommentMustAsDiff (index $comms 0))}}
  339. {{if $diff}}
  340. {{$file := (index $diff.Files 0)}}
  341. <div id="code-preview-{{(index $comms 0).ID}}" class="ui table segment{{if $invalid}} hide{{end}}">
  342. <div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}}">
  343. <div class="file-body file-code code-view code-diff code-diff-unified">
  344. <table>
  345. <tbody>
  346. {{template "repo/diff/section_unified" dict "file" $file "root" $}}
  347. </tbody>
  348. </table>
  349. </div>
  350. </div>
  351. </div>
  352. {{end}}
  353. <div id="code-comments-{{(index $comms 0).ID}}" class="ui segment{{if $invalid}} hide{{end}}">
  354. <div class="ui comments">
  355. {{range $comms}}
  356. {{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }}
  357. <div class="comment" id="{{.HashTag}}">
  358. <a class="avatar">
  359. <img src="{{.Poster.RelAvatarLink}}">
  360. </a>
  361. <div class="content">
  362. <a class="author" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a>
  363. <div class="metadata">
  364. <span class="date">{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdSubStr | Safe}}</span>
  365. </div>
  366. <div class="text">
  367. <div class="render-content markdown has-emoji">
  368. {{if .RenderedContent}}
  369. {{.RenderedContent|Str2html}}
  370. {{else}}
  371. <span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
  372. {{end}}
  373. </div>
  374. <div class="raw-content hide">{{.Content}}</div>
  375. </div>
  376. </div>
  377. </div>
  378. {{end}}
  379. </div>
  380. {{template "repo/diff/comment_form_datahandler" dict "hidden" true "reply" (index $comms 0).ReviewID "root" $ "comment" (index $comms 0)}}
  381. </div>
  382. </div>
  383. {{end}}
  384. {{end}}
  385. </div>
  386. {{else if eq .Type 23}}
  387. <div class="event" id="{{.HashTag}}">
  388. <span class="octicon octicon-lock issue-symbol"></span>
  389. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  390. <img src="{{.Poster.RelAvatarLink}}">
  391. </a>
  392. {{ if .Content }}
  393. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  394. {{$.i18n.Tr "repo.issues.lock_with_reason" .Content $createdStr | Safe}}
  395. </span>
  396. {{ else }}
  397. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  398. {{$.i18n.Tr "repo.issues.lock_no_reason" $createdStr | Safe}}
  399. </span>
  400. {{ end }}
  401. </div>
  402. {{else if eq .Type 24}}
  403. <div class="event" id="{{.HashTag}}">
  404. <span class="octicon octicon-key issue-symbol"></span>
  405. <a class="ui avatar image" href="{{.Poster.HomeLink}}">
  406. <img src="{{.Poster.RelAvatarLink}}">
  407. </a>
  408. <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
  409. {{$.i18n.Tr "repo.issues.unlock_comment" $createdStr | Safe}}
  410. </span>
  411. </div>
  412. {{end}}
  413. {{end}}
上海开阖软件有限公司 沪ICP备12045867号-1