diff options
author | JakobDev <jakobdev@gmx.de> | 2024-01-24 06:51:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 13:51:37 +0800 |
commit | 7ed18566e10b298309dcc99d97447cb1932ae09a (patch) | |
tree | 1b369d99dd920442517c3c87022d41ea75672f90 /templates | |
parent | ee3e83eec154c906e8668a126bb39c56a053d49a (diff) | |
download | gitea-7ed18566e10b298309dcc99d97447cb1932ae09a.tar.gz gitea-7ed18566e10b298309dcc99d97447cb1932ae09a.zip |
Show in Web UI if file is vendored and generated (#28620)
This simple shows in the Web UI is a file is vendored and/or generated.
![grafik](https://github.com/go-gitea/gitea/assets/15185051/bfe45fcc-cfec-4ba1-8d93-c0a262c3ae1c)
![grafik](https://github.com/go-gitea/gitea/assets/15185051/9f222a49-e7bf-4540-ba64-43dcc5767b76)
---------
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/file_info.tmpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/repo/file_info.tmpl b/templates/repo/file_info.tmpl index 3003fbbdb6..33f0f87d61 100644 --- a/templates/repo/file_info.tmpl +++ b/templates/repo/file_info.tmpl @@ -30,6 +30,16 @@ {{ctx.Locale.Tr "repo.executable_file"}} </div> {{end}} + {{if .IsVendored}} + <div class="file-info-entry"> + {{ctx.Locale.Tr "repo.vendored"}} + </div> + {{end}} + {{if .IsGenerated}} + <div class="file-info-entry"> + {{ctx.Locale.Tr "repo.generated"}} + </div> + {{end}} {{if .ImageSize}} <div class="file-info-entry"> {{.ImageSize}} |