aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-07-31 07:04:45 +0200
committerGitHub <noreply@github.com>2023-07-31 05:04:45 +0000
commitaba9096999798efef448bee2f289917069f9b599 (patch)
treea048674a1340b9b69aaff4d4904135b573e7d4bc /templates/repo
parent983167cf49cd64c7a1f28c39aff03e00dd387990 (diff)
downloadgitea-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.tmpl5
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>