1
1
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:
Andrzej Ressel
2019-04-20 04:47:00 +02:00
committed by techknowlogick
parent b9d1fb6de3
commit 469d9b7d9a
10 changed files with 631 additions and 2 deletions

View File

@@ -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}}