From 3b51c4f3fb42f5e8339dfc9e882fae6af3570d69 Mon Sep 17 00:00:00 2001 From: Lanre Adelowo <adelowomailbox@gmail.com> Date: Wed, 8 Aug 2018 06:20:04 +0100 Subject: [PATCH] Show review comment box only on a pull request page (#4636) * Show review comment box only on a pull request page * Fixed template check --- templates/repo/diff/box.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 77a0e955e1..572ed17e15 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -8,7 +8,7 @@ <div class="ui right"> <a class="ui tiny basic toggle button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}">{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}</a> <a class="ui tiny basic toggle button" data-target="#diff-files">{{.i18n.Tr "repo.diff.show_diff_stats"}}</a> - {{if $.SignedUserID}} + {{if and .PageIsPullFiles $.SignedUserID}} {{template "repo/diff/new_review" .}} {{end}} </div>