diff options
author | JakobDev <jakobdev@gmx.de> | 2023-06-16 07:46:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 07:46:12 +0200 |
commit | a305c37e62eca42aaad16b4521520bad6bca58d2 (patch) | |
tree | 89baf0b20fa44b74c427e4b668bcbf317d1139a7 /routers | |
parent | bc51e259d6442ec753846ba353395fa4fe7d0858 (diff) | |
download | gitea-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 'routers')
-rw-r--r-- | routers/web/repo/view.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index cf719c49f0..ad87bae9b8 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -390,6 +390,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st ctx.Data["IsRepresentableAsText"] = isRepresentableAsText ctx.Data["IsDisplayingSource"] = isDisplayingSource ctx.Data["IsDisplayingRendered"] = isDisplayingRendered + ctx.Data["IsExecutable"] = entry.IsExecutable() isTextSource := fInfo.isTextFile || isDisplayingSource ctx.Data["IsTextSource"] = isTextSource |