diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 103b32bd4a..4ab41e4db0 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -39,6 +39,11 @@
{{ctx.Locale.Tr "repo.file_view_preview"}} {{ctx.Locale.Tr "repo.file_view_source"}} + {{if .HTMLPreviewEnabled}} + Fullscreen + {{else}} + Fullscreen + {{end}}
{{end}} {{/* Gitea icon toggles for markup etc.; HTML uses Preview/Source buttons above only */}} @@ -137,15 +142,9 @@ {{else if .IsHTMLFile}} {{if .HTMLPreviewEnabled}} -
- {{svg "octicon-screen-full" 14}} - -
+ {{else}} -
- {{svg "octicon-screen-full" 14}} - -
+ {{end}} {{else}}