mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
[GITEA] pulls: "Edit File" button in "Files Changed" tab
Closes #1894. Gitea issue: https://github.com/go-gitea/gitea/issues/23848 (cherry picked from commit79c75164ca
) (cherry picked from commit58c76aad8f
) (cherry picked from commit5bdb3c6c53
) (cherry picked from commit94e954ce22
) (cherry picked from commit1388e7c7be
) (cherry picked from commit6a234abff5
)
This commit is contained in:
parent
5c0894a588
commit
f3b298133e
4 changed files with 43 additions and 8 deletions
|
@ -166,6 +166,9 @@
|
|||
<a class="ui basic tiny button" rel="nofollow" href="{{$.BeforeSourcePath}}/{{PathEscapeSegments .Name}}">{{ctx.Locale.Tr "repo.diff.view_file"}}</a>
|
||||
{{else}}
|
||||
<a class="ui basic tiny button" rel="nofollow" href="{{$.SourcePath}}/{{PathEscapeSegments .Name}}">{{ctx.Locale.Tr "repo.diff.view_file"}}</a>
|
||||
{{if and $.HeadBranchIsEditable (not $file.IsLFSFile)}}
|
||||
<a class="ui basic tiny button" rel="nofollow" href="{{$.SourceRepoLink}}/_edit/{{PathEscapeSegments $.HeadBranch}}/{{PathEscapeSegments .Name}}">{{ctx.Locale.Tr "repo.editor.edit_this_file"}}</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{if $isReviewFile}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue