@ -5,17 +5,17 @@
<td class="lines-num lines-num-old" data-line-num=" {{ if $ line .LeftIdx }} {{ $ line .LeftIdx }} {{ end }} ">
<div class="gt-df">
{{ if or ( eq $ line .GetExpandDirection 3 ) ( eq $ line .GetExpandDirection 5 ) }}
<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 }} ">
<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 }} ">
{{ svg "octicon-fold-down" }}
</button>
{{ end }}
{{ if or ( eq $ line .GetExpandDirection 3 ) ( eq $ line .GetExpandDirection 4 ) }}
<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 }} ">
<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 }} ">
{{ svg "octicon-fold-up" }}
</button>
{{ end }}
{{ if eq $ line .GetExpandDirection 2 }}
<button class="code-expander-button" data-url ="{{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=split&direction=&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
<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 }} ">
{{ svg "octicon-fold" }}
</button>
{{ end }}
@ -51,17 +51,17 @@
<td colspan="2" class="lines-num">
<div class="gt-df">
{{ if or ( eq $ line .GetExpandDirection 3 ) ( eq $ line .GetExpandDirection 5 ) }}
<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 }} ">
<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 }} ">
{{ svg "octicon-fold-down" }}
</button>
{{ end }}
{{ if or ( eq $ line .GetExpandDirection 3 ) ( eq $ line .GetExpandDirection 4 ) }}
<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 }} ">
<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 }} ">
{{ svg "octicon-fold-up" }}
</button>
{{ end }}
{{ if eq $ line .GetExpandDirection 2 }}
<button class="code-expander-button" data-url ="{{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=unified&direction=&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
<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 }} ">
{{ svg "octicon-fold" }}
</button>
{{ end }}