File tree 6 files changed +9
-9
lines changed
6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 54
54
<span class="no-content">{{$.root.locale.Tr "repo.issues.no_content"}}</span>
55
55
{{end}}
56
56
</div>
57
- <div id="comment -{{.ID}}" class="raw-content hide">{{.Content}}</div>
57
+ <div id="issuecomment -{{.ID}}-raw " class="raw-content hide">{{.Content}}</div>
58
58
<div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.root.RepoLink}}/comments/{{.ID}}" data-context="{{$.root.RepoLink}}"></div>
59
59
</div>
60
60
{{$reactions := .Reactions.GroupByType}}
Original file line number Diff line number Diff line change 77
77
<span class="no-content">{{.locale.Tr "repo.issues.no_content"}}</span>
78
78
{{end}}
79
79
</div>
80
- <div id="comment -{{.Issue.ID}}" class="raw-content hide">{{.Issue.Content}}</div>
80
+ <div id="issue -{{.Issue.ID}}-raw " class="raw-content hide">{{.Issue.Content}}</div>
81
81
<div class="edit-content-zone hide" data-write="issue-{{.Issue.ID}}-write" data-preview="issue-{{.Issue.ID}}-preview" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/content" data-context="{{.RepoLink}}" data-attachment-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/attachments" data-view-attachment-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/view-attachments"></div>
82
82
{{if .Issue.Attachments}}
83
83
{{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Issue.Attachments "Content" .Issue.RenderedContent}}
Original file line number Diff line number Diff line change 77
77
<span class="no-content">{{$.locale.Tr "repo.issues.no_content"}}</span>
78
78
{{end}}
79
79
</div>
80
- <div id="comment -{{.ID}}" class="raw-content hide">{{.Content}}</div>
80
+ <div id="issuecomment -{{.ID}}-raw " class="raw-content hide">{{.Content}}</div>
81
81
<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>
82
82
{{if .Attachments}}
83
83
{{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Attachments "Content" .RenderedContent}}
449
449
<span class="no-content">{{$.locale.Tr "repo.issues.no_content"}}</span>
450
450
{{end}}
451
451
</div>
452
- <div id="comment -{{.ID}}" class="raw-content hide">{{.Content}}</div>
452
+ <div id="issuecomment -{{.ID}}-raw " class="raw-content hide">{{.Content}}</div>
453
453
<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>
454
454
{{if .Attachments}}
455
455
{{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Attachments "Content" .RenderedContent}}
576
576
<span class="no-content">{{$.locale.Tr "repo.issues.no_content"}}</span>
577
577
{{end}}
578
578
</div>
579
- <div id="comment -{{.ID}}" class="raw-content hide">{{.Content}}</div>
579
+ <div id="issuecomment -{{.ID}}-raw " class="raw-content hide">{{.Content}}</div>
580
580
<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>
581
581
</div>
582
582
{{$reactions := .Reactions.GroupByType}}
Original file line number Diff line number Diff line change 11
11
{{$referenceUrl = Printf "%s/files#%s" .ctx.Issue.HTMLURL .item.HashTag}}
12
12
{{end}}
13
13
<div class="item context" data-clipboard-text="{{$referenceUrl}}">{{.ctx.locale.Tr "repo.issues.context.copy_link"}}</div>
14
- <div class="item context quote-reply {{if .diff}}quote-reply-diff{{end}}" data-target="{{.item.ID}} ">{{.ctx.locale.Tr "repo.issues.context.quote_reply"}}</div>
14
+ <div class="item context quote-reply {{if .diff}}quote-reply-diff{{end}}" data-target="{{.item.HashTag}}-raw ">{{.ctx.locale.Tr "repo.issues.context.quote_reply"}}</div>
15
15
{{if not .ctx.UnitIssuesGlobalDisabled}}
16
- <div class="item context reference-issue" data-target="{{.item.ID}} " data-modal="#reference-issue-modal" data-poster="{{.item.Poster.GetDisplayName}}" data-poster-username="{{.item.Poster.Name}}" data-reference="{{$referenceUrl}}">{{.ctx.locale.Tr "repo.issues.context.reference_issue"}}</div>
16
+ <div class="item context reference-issue" data-target="{{.item.HashTag}}-raw " data-modal="#reference-issue-modal" data-poster="{{.item.Poster.GetDisplayName}}" data-poster-username="{{.item.Poster.Name}}" data-reference="{{$referenceUrl}}">{{.ctx.locale.Tr "repo.issues.context.reference_issue"}}</div>
17
17
{{end}}
18
18
{{if or .ctx.Permission.IsAdmin .IsCommentPoster .ctx.HasIssuesOrPullsWritePermission}}
19
19
<div class="divider"></div>
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ export function initRepoIssueReferenceIssue() {
553
553
const $this = $ ( this ) ;
554
554
$this . closest ( '.dropdown' ) . find ( '.menu' ) . toggle ( 'visible' ) ;
555
555
556
- const content = $ ( `#comment- ${ $this . data ( 'target' ) } ` ) . text ( ) ;
556
+ const content = $ ( `#${ $this . data ( 'target' ) } ` ) . text ( ) ;
557
557
const poster = $this . data ( 'poster-username' ) ;
558
558
const reference = $this . data ( 'reference' ) ;
559
559
const $modal = $ ( $this . data ( 'modal' ) ) ;
Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ function initRepoIssueCommentEdit() {
566
566
$ ( document ) . on ( 'click' , '.quote-reply' , function ( event ) {
567
567
$ ( this ) . closest ( '.dropdown' ) . find ( '.menu' ) . toggle ( 'visible' ) ;
568
568
const target = $ ( this ) . data ( 'target' ) ;
569
- const quote = $ ( `#comment- ${ target } ` ) . text ( ) . replace ( / \n / g, '\n> ' ) ;
569
+ const quote = $ ( `#${ target } ` ) . text ( ) . replace ( / \n / g, '\n> ' ) ;
570
570
const content = `> ${ quote } \n\n` ;
571
571
let easyMDE ;
572
572
if ( $ ( this ) . hasClass ( 'quote-reply-diff' ) ) {
You can’t perform that action at this time.
0 commit comments