@ -3,28 +3,30 @@
<tr class=" {{ .GetHTMLDiffLineType }} -code nl- {{ $ k }} ol- {{ $ k }} ">
{{ if eq .GetType 4 }}
<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 ) }}
< a role="button" class="blob-excerpt " 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 " data-url="{{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=split&direction=down&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
{{ svg "octicon-fold-down" }}
</ a >
</ button >
{{ end }}
{{ if or ( eq $ line .GetExpandDirection 3 ) ( eq $ line .GetExpandDirection 4 ) }}
< a role="button" class="blob-excerpt " 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 " data-url="{{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=split&direction=up&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
{{ svg "octicon-fold-up" }}
</ a >
</ button >
{{ end }}
{{ if eq $ line .GetExpandDirection 2 }}
< a role="button" class="blob-excerpt " data-url="{{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=split&direction=&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
< button class="code-expander-button " data-url="{{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=split&direction=&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
{{ svg "octicon-fold" }}
</ a >
</ button >
{{ end }}
</div>
</td>
<td colspan="7" class="lines-code lines-code-old "> {{ $ inline Diff : = $ .section .GetComputedInlineDiffFor $ line $ .locale }} {{ / *
*/}} {{ template "repo/diff/section_code" dict "diff" $ inline Diff "locale" $ .locale }} </td>
{{ else }}
{{ $ inline Diff : = $ .section .GetComputedInlineDiffFor $ line $ .locale }}
<td class="lines-num lines-num-old" data-line-num=" {{ if $ line .LeftIdx }} {{ $ line .LeftIdx }} {{ end }} "><span rel=" {{ if $ line .LeftIdx }} diff- {{ $ .FileNameHash }} L {{ $ line .LeftIdx }} {{ end }} "></span></td>
<td class="blob-excerpt lines-escape lines-escape-old"> {{ if and $ line .LeftIdx $ inline Diff .EscapeStatus .Escaped }} < a href="" class="toggle-escape-button " title="{{ template "repo/diff/escape_title" dict "diff" $ inline Diff "locale" $ .locale }} "></ a >{{ end }} </td>
<td class="blob-excerpt lines-escape lines-escape-old"> {{ if and $ line .LeftIdx $ inline Diff .EscapeStatus .Escaped }} < button class="toggle-escape-button button button-ghost " title="{{ template "repo/diff/escape_title" dict "diff" $ inline Diff "locale" $ .locale }} "></ button >{{ end }} </td>
<td class="blob-excerpt lines-type-marker lines-type-marker-old"> {{ if $ line .LeftIdx }} <span class="gt-mono" data-type-marker=""></span> {{ end }} </td>
<td class="blob-excerpt lines-code lines-code-old"> {{ / *
*/}} {{ if $ line .LeftIdx }} {{ template "repo/diff/section_code" dict "diff" $ inline Diff "locale" $ .locale }} {{ else }} {{ / *
@ -32,7 +34,7 @@
*/}} {{ end }} {{ / *
*/}}</td>
<td class="lines-num lines-num-new" data-line-num=" {{ if $ line .RightIdx }} {{ $ line .RightIdx }} {{ end }} "><span rel=" {{ if $ line .RightIdx }} diff- {{ $ .FileNameHash }} R {{ $ line .RightIdx }} {{ end }} "></span></td>
<td class="blob-excerpt lines-escape lines-escape-new"> {{ if and $ line .RightIdx $ inline Diff .EscapeStatus .Escaped }} < a href="" class="toggle-escape-button " title="{{ template "repo/diff/escape_title" dict "diff" $ inline Diff "locale" $ .locale }} "></ a >{{ end }} </td>
<td class="blob-excerpt lines-escape lines-escape-new"> {{ if and $ line .RightIdx $ inline Diff .EscapeStatus .Escaped }} < button class="toggle-escape-button button button-ghost " title="{{ template "repo/diff/escape_title" dict "diff" $ inline Diff "locale" $ .locale }} "></ button >{{ end }} </td>
<td class="blob-excerpt lines-type-marker lines-type-marker-new"> {{ if $ line .RightIdx }} <span class="gt-mono" data-type-marker=""></span> {{ end }} </td>
<td class="blob-excerpt lines-code lines-code-new"> {{ / *
*/}} {{ if $ line .RightIdx }} {{ template "repo/diff/section_code" dict "diff" $ inline Diff "locale" $ .locale }} {{ else }} {{ / *
@ -47,28 +49,30 @@
<tr class=" {{ .GetHTMLDiffLineType }} -code nl- {{ $ k }} ol- {{ $ k }} ">
{{ if eq .GetType 4 }}
<td colspan="2" class="lines-num">
{{ if or ( eq $ line .GetExpandDirection 3 ) ( eq $ line .GetExpandDirection 5 ) }}
<a role="button" class="blob-excerpt" data-url=" {{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=unified&direction=down&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
{{ svg "octicon-fold-down" }}
</a>
{{ end }}
{{ if or ( eq $ line .GetExpandDirection 3 ) ( eq $ line .GetExpandDirection 4 ) }}
<a role="button" class="blob-excerpt" data-url=" {{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=unified&direction=up&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
{{ svg "octicon-fold-up" }}
</a>
{{ end }}
{{ if eq $ line .GetExpandDirection 2 }}
<a role="button" class="blob-excerpt" data-url=" {{ $ .RepoLink }} /blob_excerpt/ {{ PathEscape $ .AfterCommitID }} " data-query=" {{ $ line .GetBlobExcerptQuery }} &style=unified&direction=&wiki= {{ $ .PageIsWiki }} " data-anchor=" {{ $ .Anchor }} ">
{{ svg "octicon-fold" }}
</a>
{{ 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=unified&direction=down&wiki= {{ $ .PageIsWiki }} " data-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 }} ">
{{ 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 }} ">
{{ svg "octicon-fold" }}
</button>
{{ end }}
</div>
</td>
{{ else }}
<td class="lines-num lines-num-old" data-line-num=" {{ if $ line .LeftIdx }} {{ $ line .LeftIdx }} {{ end }} "><span rel=" {{ if $ line .LeftIdx }} diff- {{ $ .FileNameHash }} L {{ $ line .LeftIdx }} {{ end }} "></span></td>
<td class="lines-num lines-num-new" data-line-num=" {{ if $ line .RightIdx }} {{ $ line .RightIdx }} {{ end }} "><span rel=" {{ if $ line .RightIdx }} diff- {{ $ .FileNameHash }} R {{ $ line .RightIdx }} {{ end }} "></span></td>
{{ end }}
{{ $ inline Diff : = $ .section .GetComputedInlineDiffFor $ line $ .locale }}
<td class="blob-excerpt lines-escape"> {{ if $ inline Diff .EscapeStatus .Escaped }} < a href="" class="toggle-escape-button " title="{{ template "repo/diff/escape_title" dict "diff" $ inline Diff "locale" $ .locale }} "></ a >{{ end }} </td>
<td class="blob-excerpt lines-escape"> {{ if $ inline Diff .EscapeStatus .Escaped }} < button class="toggle-escape-button button button-ghost " title="{{ template "repo/diff/escape_title" dict "diff" $ inline Diff "locale" $ .locale }} "></ button >{{ end }} </td>
<td class="blob-excerpt lines-type-marker"><span class="gt-mono" data-type-marker=" {{ $ line .GetLineTypeMarker }} "></span></td>
<td class="blob-excerpt lines-code {{ if ( not $ line .RightIdx ) }} lines-code-old {{ end }} "><code {{ if $ inline Diff .EscapeStatus .Escaped }} class="code-inner has-escaped" title=" {{ template "repo/diff/escape_title" dict "diff" $ inline Diff "locale" $ .locale }} " {{ else }} class="code-inner" {{ end }} > {{ $ inline Diff .Content }} </code></td>
</tr>