mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Show if File is Executable (#25287)
This simply shows if a File has the executable Permission  --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user