|
7 | 7 | <td class="lines-num lines-num-old" data-line-num="{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}"> |
8 | 8 | <div class="code-expander-buttons" data-expand-direction="{{$expandDirection}}"> |
9 | 9 | {{if or (eq $expandDirection 3) (eq $expandDirection 5)}} |
10 | | - <button class="code-expander-button" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=split&direction=down"> |
| 10 | + <button class="code-expander-button{{if $line.HasHiddenComments}} has-hidden-comments{{end}}" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=split&direction=down" title="{{if $line.HasHiddenComments}}{{$line.HiddenCommentCount}} hidden comment(s){{end}}"> |
11 | 11 | {{svg "octicon-fold-down"}} |
| 12 | + {{if $line.HasHiddenComments}}<span class="ui mini label">{{$line.HiddenCommentCount}}</span>{{end}} |
12 | 13 | </button> |
13 | 14 | {{end}} |
14 | 15 | {{if or (eq $expandDirection 3) (eq $expandDirection 4)}} |
15 | | - <button class="code-expander-button" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=split&direction=up"> |
| 16 | + <button class="code-expander-button{{if $line.HasHiddenComments}} has-hidden-comments{{end}}" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=split&direction=up" title="{{if $line.HasHiddenComments}}{{$line.HiddenCommentCount}} hidden comment(s){{end}}"> |
16 | 17 | {{svg "octicon-fold-up"}} |
| 18 | + {{if $line.HasHiddenComments}}<span class="ui mini label">{{$line.HiddenCommentCount}}</span>{{end}} |
17 | 19 | </button> |
18 | 20 | {{end}} |
19 | 21 | {{if eq $expandDirection 2}} |
20 | | - <button class="code-expander-button" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=split"> |
| 22 | + <button class="code-expander-button{{if $line.HasHiddenComments}} has-hidden-comments{{end}}" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=split" title="{{if $line.HasHiddenComments}}{{$line.HiddenCommentCount}} hidden comment(s){{end}}"> |
21 | 23 | {{svg "octicon-fold"}} |
| 24 | + {{if $line.HasHiddenComments}}<span class="ui mini label">{{$line.HiddenCommentCount}}</span>{{end}} |
22 | 25 | </button> |
23 | 26 | {{end}} |
24 | 27 | </div> |
|
84 | 87 | <td colspan="2" class="lines-num"> |
85 | 88 | <div class="code-expander-buttons" data-expand-direction="{{$expandDirection}}"> |
86 | 89 | {{if or (eq $expandDirection 3) (eq $expandDirection 5)}} |
87 | | - <button class="code-expander-button" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=unified&direction=down"> |
| 90 | + <button class="code-expander-button{{if $line.HasHiddenComments}} has-hidden-comments{{end}}" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=unified&direction=down" title="{{if $line.HasHiddenComments}}{{$line.HiddenCommentCount}} hidden comment(s){{end}}"> |
88 | 91 | {{svg "octicon-fold-down"}} |
| 92 | + {{if $line.HasHiddenComments}}<span class="ui mini label">{{$line.HiddenCommentCount}}</span>{{end}} |
89 | 93 | </button> |
90 | 94 | {{end}} |
91 | 95 | {{if or (eq $expandDirection 3) (eq $expandDirection 4)}} |
92 | | - <button class="code-expander-button" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=unified&direction=up"> |
| 96 | + <button class="code-expander-button{{if $line.HasHiddenComments}} has-hidden-comments{{end}}" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=unified&direction=up" title="{{if $line.HasHiddenComments}}{{$line.HiddenCommentCount}} hidden comment(s){{end}}"> |
93 | 97 | {{svg "octicon-fold-up"}} |
| 98 | + {{if $line.HasHiddenComments}}<span class="ui mini label">{{$line.HiddenCommentCount}}</span>{{end}} |
94 | 99 | </button> |
95 | 100 | {{end}} |
96 | 101 | {{if eq $expandDirection 2}} |
97 | | - <button class="code-expander-button" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=unified"> |
| 102 | + <button class="code-expander-button{{if $line.HasHiddenComments}} has-hidden-comments{{end}}" hx-target="closest tr" hx-get="{{$blobExcerptLink}}&{{$line.GetBlobExcerptQuery}}&style=unified" title="{{if $line.HasHiddenComments}}{{$line.HiddenCommentCount}} hidden comment(s){{end}}"> |
98 | 103 | {{svg "octicon-fold"}} |
| 104 | + {{if $line.HasHiddenComments}}<span class="ui mini label">{{$line.HiddenCommentCount}}</span>{{end}} |
99 | 105 | </button> |
100 | 106 | {{end}} |
101 | 107 | </div> |
|
0 commit comments