|
47 | 47 | <td class="lines-type-marker lines-type-marker-old del-code"><span class="gt-mono" data-type-marker="{{$line.GetLineTypeMarker}}"></span></td> |
48 | 48 | <td class="lines-code lines-code-old del-code">{{/* |
49 | 49 | */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/* |
50 | | - */}}<a class="ui primary button add-code-comment add-code-comment-left{{if (not $line.CanComment)}} invisible{{end}}" data-side="left" data-idx="{{$line.LeftIdx}}">{{/* |
| 50 | + */}}<button type="button" aria-label="{{$.root.locale.Tr "repo.diff.comment.add_line_comment"}}" class="ui primary button add-code-comment add-code-comment-left{{if (not $line.CanComment)}} invisible{{end}}" data-side="left" data-idx="{{$line.LeftIdx}}">{{/* |
51 | 51 | */}}{{svg "octicon-plus"}}{{/* |
52 | | - */}}</a>{{/* |
| 52 | + */}}</button>{{/* |
53 | 53 | */}}{{end}}{{/* |
54 | 54 | */}}{{if $line.LeftIdx}}{{/* |
55 | 55 | */}}{{template "repo/diff/section_code" dict "diff" $leftDiff "locale" $.root.locale}}{{/* |
|
62 | 62 | <td class="lines-type-marker lines-type-marker-new add-code">{{if $match.RightIdx}}<span class="gt-mono" data-type-marker="{{$match.GetLineTypeMarker}}"></span>{{end}}</td> |
63 | 63 | <td class="lines-code lines-code-new add-code">{{/* |
64 | 64 | */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/* |
65 | | - */}}<a class="ui primary button add-code-comment add-code-comment-right{{if (not $match.CanComment)}} invisible{{end}}" data-side="right" data-idx="{{$match.RightIdx}}">{{/* |
| 65 | + */}}<button type="button" aria-label="{{$.root.locale.Tr "repo.diff.comment.add_line_comment"}}" class="ui primary button add-code-comment add-code-comment-right{{if (not $match.CanComment)}} invisible{{end}}" data-side="right" data-idx="{{$match.RightIdx}}">{{/* |
66 | 66 | */}}{{svg "octicon-plus"}}{{/* |
67 | | - */}}</a>{{/* |
| 67 | + */}}</button>{{/* |
68 | 68 | */}}{{end}}{{/* |
69 | 69 | */}}{{if $match.RightIdx}}{{/* |
70 | 70 | */}}{{template "repo/diff/section_code" dict "diff" $rightDiff "locale" $.root.locale}}{{/* |
|
79 | 79 | <td class="lines-type-marker lines-type-marker-old">{{if $line.LeftIdx}}<span class="gt-mono" data-type-marker="{{$line.GetLineTypeMarker}}"></span>{{end}}</td> |
80 | 80 | <td class="lines-code lines-code-old">{{/* |
81 | 81 | */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles (not (eq .GetType 2))}}{{/* |
82 | | - */}}<a class="ui primary button add-code-comment add-code-comment-left{{if (not $line.CanComment)}} invisible{{end}}" data-side="left" data-idx="{{$line.LeftIdx}}">{{/* |
| 82 | + */}}<button type="button" aria-label="{{$.root.locale.Tr "repo.diff.comment.add_line_comment"}}" class="ui primary button add-code-comment add-code-comment-left{{if (not $line.CanComment)}} invisible{{end}}" data-side="left" data-idx="{{$line.LeftIdx}}">{{/* |
83 | 83 | */}}{{svg "octicon-plus"}}{{/* |
84 | | - */}}</a>{{/* |
| 84 | + */}}</button>{{/* |
85 | 85 | */}}{{end}}{{/* |
86 | 86 | */}}{{if $line.LeftIdx}}{{/* |
87 | 87 | */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff "locale" $.root.locale}}{{/* |
|
94 | 94 | <td class="lines-type-marker lines-type-marker-new">{{if $line.RightIdx}}<span class="gt-mono" data-type-marker="{{$line.GetLineTypeMarker}}"></span>{{end}}</td> |
95 | 95 | <td class="lines-code lines-code-new">{{/* |
96 | 96 | */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles (not (eq .GetType 3))}}{{/* |
97 | | - */}}<a class="ui primary button add-code-comment add-code-comment-right{{if (not $line.CanComment)}} invisible{{end}}" data-side="right" data-idx="{{$line.RightIdx}}">{{/* |
| 97 | + */}}<button type="button" aria-label="{{$.root.locale.Tr "repo.diff.comment.add_line_comment"}}" class="ui primary button add-code-comment add-code-comment-right{{if (not $line.CanComment)}} invisible{{end}}" data-side="right" data-idx="{{$line.RightIdx}}">{{/* |
98 | 98 | */}}{{svg "octicon-plus"}}{{/* |
99 | | - */}}</a>{{/* |
| 99 | + */}}</button>{{/* |
100 | 100 | */}}{{end}}{{/* |
101 | 101 | */}}{{if $line.RightIdx}}{{/* |
102 | 102 | */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff "locale" $.root.locale}}{{/* |
|
0 commit comments