|
5 | 5 | <td class="lines-num lines-num-old" data-line-num="{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}"> |
6 | 6 | <div class="gt-df"> |
7 | 7 | {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}} |
8 | | - <button class="code-expander-button" data-url="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=split&direction=down&wiki={{$.PageIsWiki}}" data-anchor="{{$.Anchor}}"> |
| 8 | + <button class="code-expander-button" hx-target="closest tr" hx-get="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}?{{$line.GetBlobExcerptQuery}}&style=split&direction=down&wiki={{$.PageIsWiki}}&anchor={{$.Anchor}}"> |
9 | 9 | {{svg "octicon-fold-down"}} |
10 | 10 | </button> |
11 | 11 | {{end}} |
12 | 12 | {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}} |
13 | | - <button class="code-expander-button" data-url="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=split&direction=up&wiki={{$.PageIsWiki}}" data-anchor="{{$.Anchor}}"> |
| 13 | + <button class="code-expander-button" hx-target="closest tr" hx-get="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}?{{$line.GetBlobExcerptQuery}}&style=split&direction=up&wiki={{$.PageIsWiki}}&anchor={{$.Anchor}}"> |
14 | 14 | {{svg "octicon-fold-up"}} |
15 | 15 | </button> |
16 | 16 | {{end}} |
17 | 17 | {{if eq $line.GetExpandDirection 2}} |
18 | | - <button class="code-expander-button" data-url="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=split&direction=&wiki={{$.PageIsWiki}}" data-anchor="{{$.Anchor}}"> |
| 18 | + <button class="code-expander-button" hx-target="closest tr" hx-get="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}?{{$line.GetBlobExcerptQuery}}&style=split&direction=&wiki={{$.PageIsWiki}}&anchor={{$.Anchor}}"> |
19 | 19 | {{svg "octicon-fold"}} |
20 | 20 | </button> |
21 | 21 | {{end}} |
|
51 | 51 | <td colspan="2" class="lines-num"> |
52 | 52 | <div class="gt-df"> |
53 | 53 | {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}} |
54 | | - <button class="code-expander-button" data-url="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=unified&direction=down&wiki={{$.PageIsWiki}}" data-anchor="{{$.Anchor}}"> |
| 54 | + <button class="code-expander-button" hx-target="closest tr" hx-get="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}?data-query={{$line.GetBlobExcerptQuery}}&style=unified&direction=down&wiki={{$.PageIsWiki}}&anchor={{$.Anchor}}"> |
55 | 55 | {{svg "octicon-fold-down"}} |
56 | 56 | </button> |
57 | 57 | {{end}} |
58 | 58 | {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}} |
59 | | - <button class="code-expander-button" data-url="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=unified&direction=up&wiki={{$.PageIsWiki}}" data-anchor="{{$.Anchor}}"> |
| 59 | + <button class="code-expander-button" hx-target="closest tr" hx-get="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}?data-query={{$line.GetBlobExcerptQuery}}&style=unified&direction=up&wiki={{$.PageIsWiki}}&anchor={{$.Anchor}}"> |
60 | 60 | {{svg "octicon-fold-up"}} |
61 | 61 | </button> |
62 | 62 | {{end}} |
63 | 63 | {{if eq $line.GetExpandDirection 2}} |
64 | | - <button class="code-expander-button" data-url="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=unified&direction=&wiki={{$.PageIsWiki}}" data-anchor="{{$.Anchor}}"> |
| 64 | + <button class="code-expander-button" hx-target="closest tr" hx-get="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}?data-query={{$line.GetBlobExcerptQuery}}&style=unified&direction=&wiki={{$.PageIsWiki}}&anchor={{$.Anchor}}"> |
65 | 65 | {{svg "octicon-fold"}} |
66 | 66 | </button> |
67 | 67 | {{end}} |
|
0 commit comments