aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/file_info.tmpl
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-06-16 07:46:12 +0200
committerGitHub <noreply@github.com>2023-06-16 07:46:12 +0200
commita305c37e62eca42aaad16b4521520bad6bca58d2 (patch)
tree89baf0b20fa44b74c427e4b668bcbf317d1139a7 /templates/repo/file_info.tmpl
parentbc51e259d6442ec753846ba353395fa4fe7d0858 (diff)
downloadgitea-a305c37e62eca42aaad16b4521520bad6bca58d2.tar.gz
gitea-a305c37e62eca42aaad16b4521520bad6bca58d2.zip
Show if File is Executable (#25287)
This simply shows if a File has the executable Permission ![grafik](https://github.com/go-gitea/gitea/assets/15185051/1d50c105-6d55-4ecc-808a-c9cd5559d238) --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/repo/file_info.tmpl')
-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 580966d35c..44256a0dcb 100644
--- a/templates/repo/file_info.tmpl
+++ b/templates/repo/file_info.tmpl
@@ -25,4 +25,9 @@
{{.LexerName}}
</div>
{{end}}
+ {{if .IsExecutable}}
+ <div class="file-info-entry">
+ {{.locale.Tr "repo.executable_file"}}
+ </div>
+ {{end}}
</div>