File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
<div class="file-body file-code code-view code-diff">
4
4
<table>
5
5
<tbody>
6
- {{with .File}}
7
- {{template "repo/diff/section_unified" .}}
8
- {{end}}
6
+ {{template "repo/diff/section_unified" dict "file" .File "root" $}}
9
7
</tbody>
10
8
</table>
11
9
</div>
Original file line number Diff line number Diff line change 30
30
<div class="ui top attached tabular menu" data-write="write" data-preview="preview" data-diff="diff">
31
31
<a class="active item" data-tab="write"><i class="octicon octicon-code"></i> {{if .IsNewFile}}{{.i18n.Tr "repo.editor.new_file"}}{{else}}{{.i18n.Tr "repo.editor.edit_file"}}{{end}}</a>
32
32
{{if not .IsNewFile}}
33
- <a class="item" data-tab="preview" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}/src/{{.BranchNameSubURL | EscapePound}}" data-preview-file-modes="{{.PreviewableFileModes}}"><i class="octicon octicon-eye"></i> {{.i18n.Tr "repo.release. preview"}}</a>
33
+ <a class="item" data-tab="preview" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}/src/{{.BranchNameSubURL | EscapePound}}" data-preview-file-modes="{{.PreviewableFileModes}}"><i class="octicon octicon-eye"></i> {{.i18n.Tr "preview"}}</a>
34
34
<a class="item" data-tab="diff" data-url="{{.RepoLink}}/_preview/{{.BranchName | EscapePound}}/{{.TreePath | EscapePound}}" data-context="{{.BranchLink}}"><i class="octicon octicon-diff"></i> {{.i18n.Tr "repo.editor.preview_changes"}}</a>
35
35
{{end}}
36
36
</div>
You can’t perform that action at this time.
0 commit comments