1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Show .editorconfig errors in frontend (#21088)

If the user views the .editorconfig of the Repo, an the the
.editorconfig contains error, those errors are now shown above the file.
This commit is contained in:
JakobDev
2022-09-12 00:16:56 +02:00
committed by GitHub
parent ec82a24547
commit 23fbf5e1ee
2 changed files with 12 additions and 0 deletions

View File

@@ -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}}