diff options
author | Andrzej Ressel <jereksel@gmail.com> | 2019-04-20 04:47:00 +0200 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-04-19 22:47:00 -0400 |
commit | 469d9b7d9ac3714a146d8e745618641dbe03fafa (patch) | |
tree | 7c29b6eddde19222196702d1c47919e4b4a9394d /templates/repo/home.tmpl | |
parent | b9d1fb6de32613ada3869d2a9692cb078ed48534 (diff) | |
download | gitea-469d9b7d9ac3714a146d8e745618641dbe03fafa.tar.gz gitea-469d9b7d9ac3714a146d8e745618641dbe03fafa.zip |
Add option to blame files (#5721)
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index f94f0f2104..b23e851139 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -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}} |