loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

JakobDev
silverwind
Giteabot
and committed by
GitHub
a305c37e bc51e259

+7
+1
options/locale/locale_en-US.ini
··· 1156 1156 audio_not_supported_in_browser = Your browser does not support the HTML5 'audio' tag. 1157 1157 stored_lfs = Stored with Git LFS 1158 1158 symbolic_link = Symbolic link 1159 + executable_file = Executable File 1159 1160 commit_graph = Commit Graph 1160 1161 commit_graph.select = Select branches 1161 1162 commit_graph.hide_pr_refs = Hide Pull Requests
+1
routers/web/repo/view.go
··· 390 390 ctx.Data["IsRepresentableAsText"] = isRepresentableAsText 391 391 ctx.Data["IsDisplayingSource"] = isDisplayingSource 392 392 ctx.Data["IsDisplayingRendered"] = isDisplayingRendered 393 + ctx.Data["IsExecutable"] = entry.IsExecutable() 393 394 394 395 isTextSource := fInfo.isTextFile || isDisplayingSource 395 396 ctx.Data["IsTextSource"] = isTextSource
+5
templates/repo/file_info.tmpl
··· 25 25 {{.LexerName}} 26 26 </div> 27 27 {{end}} 28 + {{if .IsExecutable}} 29 + <div class="file-info-entry"> 30 + {{.locale.Tr "repo.executable_file"}} 31 + </div> 32 + {{end}} 28 33 </div>