diff options
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r-- | templates/repo/view_file.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index f06521046e..2b4f279cb6 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -1,4 +1,11 @@ <div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content"> + {{- if .FileError}} + <div class="ui warning message"> + <div class="text left"> + <div>{{.FileError}}</div> + </div> + </div> + {{end}} <h4 class="file-header ui top attached header df ac sb"> <div class="file-header-left df ac pr-4"> {{if .ReadmeInList}} |