summaryrefslogtreecommitdiffstats
path: root/templates/repo/editor/edit.tmpl
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-11-09 14:05:43 +0200
committerGitHub <noreply@github.com>2018-11-09 14:05:43 +0200
commit7dd31eb8fb6a00d69d9334f34e15ada220704f56 (patch)
tree93a1b71d8a2b69937bae5229b51231fb391da079 /templates/repo/editor/edit.tmpl
parent2852c3576a33aeb6db295beb26888a09f9b27251 (diff)
downloadgitea-7dd31eb8fb6a00d69d9334f34e15ada220704f56.tar.gz
gitea-7dd31eb8fb6a00d69d9334f34e15ada220704f56.zip
Fix file edit change preview functionality (#5300)
Diffstat (limited to 'templates/repo/editor/edit.tmpl')
-rw-r--r--templates/repo/editor/edit.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/editor/edit.tmpl b/templates/repo/editor/edit.tmpl
index b08838cac8..82656d6557 100644
--- a/templates/repo/editor/edit.tmpl
+++ b/templates/repo/editor/edit.tmpl
@@ -30,7 +30,7 @@
<div class="ui top attached tabular menu" data-write="write" data-preview="preview" data-diff="diff">
<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>
{{if not .IsNewFile}}
- <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>
+ <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>
<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>
{{end}}
</div>