aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/view_file.tmpl9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 70d33621c6..36b50e0c7f 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -1,9 +1,12 @@
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
{{- if .FileError}}
+ <div class="ui error message">
+ <div class="text left gt-whitespace-pre">{{.FileError}}</div>
+ </div>
+ {{end}}
+ {{- if .FileWarning}}
<div class="ui warning message">
- <div class="text left">
- <div>{{.FileError}}</div>
- </div>
+ <div class="text left gt-whitespace-pre">{{.FileWarning}}</div>
</div>
{{end}}
<h4 class="file-header ui top attached header gt-df gt-ac gt-sb gt-fw">