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.

When viewing a file, hide the add button (#25320)

Fix #25281
When viewing a file, hide the add button

![image](https://github.com/go-gitea/gitea/assets/89133723/839babaf-6b67-46e1-a103-677306fb8503)

![image](https://github.com/go-gitea/gitea/assets/89133723/32a8aeca-31f4-4ce1-a0fa-7656e16b66d3)

authored by

hiifong and committed by
GitHub
57120d99 f47744c3

+1 -1
+1 -1
templates/repo/home.tmpl
··· 83 83 <a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">{{.locale.Tr "repo.find_file.go_to_file"}}</a> 84 84 {{end}} 85 85 86 - {{if and .CanWriteCode .IsViewBranch (not .Repository.IsArchived)}} 86 + {{if and .CanWriteCode .IsViewBranch (not .Repository.IsArchived) (not .IsViewFile)}} 87 87 <button class="ui dropdown basic compact jump button gt-mr-2"{{if not .Repository.CanEnableEditor}} disabled{{end}}> 88 88 {{.locale.Tr "repo.editor.add_file"}} 89 89 {{svg "octicon-triangle-down" 14 "dropdown icon"}}