diff options
author | JakobDev <jakobdev@gmx.de> | 2023-07-31 07:04:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-31 05:04:45 +0000 |
commit | aba9096999798efef448bee2f289917069f9b599 (patch) | |
tree | a048674a1340b9b69aaff4d4904135b573e7d4bc /templates/repo | |
parent | 983167cf49cd64c7a1f28c39aff03e00dd387990 (diff) | |
download | gitea-aba9096999798efef448bee2f289917069f9b599.tar.gz gitea-aba9096999798efef448bee2f289917069f9b599.zip |
Show image size on view page (#25884)
This simply shows the Image size on the view page. This is useful, if
you search a image with a specific size.
![grafik](https://github.com/go-gitea/gitea/assets/15185051/9868e361-1c2e-447f-b824-70aa28bafcbc)
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/file_info.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/repo/file_info.tmpl b/templates/repo/file_info.tmpl index 44256a0dcb..7323b30d77 100644 --- a/templates/repo/file_info.tmpl +++ b/templates/repo/file_info.tmpl @@ -30,4 +30,9 @@ {{.locale.Tr "repo.executable_file"}} </div> {{end}} + {{if .ImageSize}} + <div class="file-info-entry"> + {{.ImageSize}} + </div> + {{end}} </div> |