|
@@ -27,7 +27,7 @@
|
|
</div>
|
|
</div>
|
|
<!-- todo finish all file status, now modify, add, delete and rename -->
|
|
<!-- todo finish all file status, now modify, add, delete and rename -->
|
|
<span class="status {{DiffFileTypeToStr .Type}} poping up" data-content="{{DiffFileTypeToStr .Type}}" data-variation="inverted tiny" data-position="right center"> </span>
|
|
<span class="status {{DiffFileTypeToStr .Type}} poping up" data-content="{{DiffFileTypeToStr .Type}}" data-variation="inverted tiny" data-position="right center"> </span>
|
|
- <a class="file" href="#diff-{{.Index}}">{{.Name}}</a>
|
|
|
|
|
|
+ <a class="file" href="#diff-{{if .IsDeleted}}{{.OldIndex}}{{else}}{{.Index}}{{end}}">{{.Name}}</a>
|
|
</li>
|
|
</li>
|
|
{{end}}
|
|
{{end}}
|
|
</ol>
|
|
</ol>
|
|
@@ -50,7 +50,7 @@
|
|
</h4>
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
{{else}}
|
|
- <div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}}" id="diff-{{.Index}}">
|
|
|
|
|
|
+ <div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}}" id="diff-{{if .IsDeleted}}{{.OldIndex}}{{else}}{{.Index}}{{end}}">
|
|
<h4 class="ui top attached normal header">
|
|
<h4 class="ui top attached normal header">
|
|
<div class="diff-counter count ui left">
|
|
<div class="diff-counter count ui left">
|
|
{{if $file.IsBinary}}
|
|
{{if $file.IsBinary}}
|
|
@@ -106,7 +106,7 @@
|
|
<pre><code class="{{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{$section.ComputedInlineDiffFor $line}}</code></pre>
|
|
<pre><code class="{{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{$section.ComputedInlineDiffFor $line}}</code></pre>
|
|
</td>
|
|
</td>
|
|
{{else}}
|
|
{{else}}
|
|
- <td class="lines-num lines-num-old" {{if $line.LeftLine}} id="diff-{{Sha1 $file.Index}}L{{$line.LeftLine}}" data-line-number="{{$line.LeftLine}}"{{end}}>
|
|
|
|
|
|
+ <td class="lines-num lines-num-old" {{if $line.LeftLine}} id="diff-{{Sha1 $file.OldIndex}}L{{$line.LeftLine}}" data-line-number="{{$line.LeftLine}}"{{end}}>
|
|
</td>
|
|
</td>
|
|
<td class="lines-code halfwidth">
|
|
<td class="lines-code halfwidth">
|
|
<pre><code class="wrap {{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{if $line.LeftLine}}{{$section.ComputedInlineDiffFor $line}}{{end}}</code></pre>
|
|
<pre><code class="wrap {{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{if $line.LeftLine}}{{$section.ComputedInlineDiffFor $line}}{{end}}</code></pre>
|