|
23 | 23 | {{else}}
|
24 | 24 | <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>
|
25 | 25 | {{end}}
|
26 |
| - {{if not $.Repository.IsArchived}} |
27 |
| - <div class="ui right actions"> |
28 |
| - {{if gt .ShowTag 0}} |
29 |
| - <div class="item tag"> |
30 |
| - {{if eq .ShowTag 1}} |
31 |
| - {{$.i18n.Tr "repo.issues.poster"}} |
32 |
| - {{else if eq .ShowTag 2}} |
33 |
| - {{$.i18n.Tr "repo.issues.collaborator"}} |
34 |
| - {{else if eq .ShowTag 3}} |
35 |
| - {{$.i18n.Tr "repo.issues.owner"}} |
36 |
| - {{end}} |
37 |
| - </div> |
38 |
| - {{end}} |
39 |
| - {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) }} |
40 |
| - {{if or $.Permission.IsAdmin (eq .Poster.ID $.SignedUserID)}} |
41 |
| - <div class="item action"> |
42 |
| - <a class="edit-content" href="#"><i class="octicon octicon-pencil"></i></a> |
43 |
| - <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> |
44 |
| - </div> |
45 |
| - {{end}} |
46 |
| - </div> |
47 |
| - {{end}} |
| 26 | + {{if not $.Repository.IsArchived}} |
| 27 | + <div class="ui right actions"> |
| 28 | + {{if gt .ShowTag 0}} |
| 29 | + <div class="item tag"> |
| 30 | + {{if eq .ShowTag 1}} |
| 31 | + {{$.i18n.Tr "repo.issues.poster"}} |
| 32 | + {{else if eq .ShowTag 2}} |
| 33 | + {{$.i18n.Tr "repo.issues.collaborator"}} |
| 34 | + {{else if eq .ShowTag 3}} |
| 35 | + {{$.i18n.Tr "repo.issues.owner"}} |
| 36 | + {{end}} |
| 37 | + </div> |
| 38 | + {{end}} |
| 39 | + {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) }} |
| 40 | + {{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" . "delete" true "diff" false }} |
| 41 | + </div> |
| 42 | + {{end}} |
48 | 43 | </div>
|
49 | 44 | <div class="ui attached segment">
|
50 | 45 | <div class="render-content markdown has-emoji">
|
|
54 | 49 | <span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
|
55 | 50 | {{end}}
|
56 | 51 | </div>
|
57 |
| - <div class="raw-content hide">{{.Content}}</div> |
| 52 | + <div id="comment-{{.ID}}" class="raw-content hide">{{.Content}}</div> |
58 | 53 | <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>
|
59 | 54 | </div>
|
60 | 55 | {{$reactions := .Reactions.GroupByType}}
|
|
277 | 272 | <span class="octicon octicon-primitive-dot"></span>
|
278 | 273 | <a class="ui avatar image" href="{{.Poster.HomeLink}}">
|
279 | 274 | <img src="{{.Poster.RelAvatarLink}}">
|
280 |
| - </a> |
281 |
| - <span class="text grey"> |
282 |
| - {{$.i18n.Tr "repo.issues.dependency.added_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}} |
283 |
| - </span> |
284 |
| - <div class="detail"> |
| 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"> |
285 | 280 | <span class="octicon octicon-plus"></span>
|
286 |
| - <span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span> |
287 |
| - </div> |
288 |
| - </div> |
| 281 | + <span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span> |
| 282 | + </div> |
| 283 | + </div> |
289 | 284 | {{else if eq .Type 20}}
|
290 | 285 | <div class="event" id="{{.HashTag}}">
|
291 |
| - <span class="octicon octicon-primitive-dot"></span> |
292 |
| - <a class="ui avatar image" href="{{.Poster.HomeLink}}"> |
293 |
| - <img src="{{.Poster.RelAvatarLink}}"> |
294 |
| - </a> |
295 |
| - <span class="text grey"> |
296 |
| - {{$.i18n.Tr "repo.issues.dependency.removed_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}} |
297 |
| - </span> |
298 |
| - <div class="detail"> |
299 |
| - <span class="text grey octicon octicon-trashcan"></span> |
300 |
| - <span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span> |
301 |
| - </div> |
302 |
| - </div> |
| 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> |
303 | 298 | {{else if eq .Type 22}}
|
304 | 299 | <div class="event" id="{{.HashTag}}">
|
305 | 300 | <span class="octicon octicon-{{.Review.Type.Icon}} issue-symbol"></span>
|
|
0 commit comments