Skip to content

Commit

Permalink
Show review comment box only on a pull request page (#4636)
Browse files Browse the repository at this point in the history
* Show review comment box only on a pull request page

* Fixed template check
  • Loading branch information
adelowo authored and lafriks committed Aug 8, 2018
1 parent 32145b6 commit 3b51c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/diff/box.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3b51c4f

Please sign in to comment.