mirror of
https://github.com/go-gitea/gitea
synced 2025-07-27 04:38:36 +00:00
Add option to blame files (#5721)
This commit is contained in:
committed by
techknowlogick
parent
b9d1fb6de3
commit
469d9b7d9a
@@ -86,7 +86,7 @@
|
||||
</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{if and (ne $n 0) (not .IsViewFile)}}
|
||||
{{if and (ne $n 0) (not .IsViewFile) (not .IsBlame) }}
|
||||
<a href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}" class="ui button">
|
||||
{{.i18n.Tr "repo.file_history"}}
|
||||
</a>
|
||||
@@ -132,6 +132,8 @@
|
||||
</div>
|
||||
{{if .IsViewFile}}
|
||||
{{template "repo/view_file" .}}
|
||||
{{else if .IsBlame}}
|
||||
{{template "repo/blame" .}}
|
||||
{{else}}
|
||||
{{template "repo/view_list" .}}
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user