diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2018-08-08 06:20:04 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-08-08 08:20:04 +0300 |
commit | 3b51c4f3fb42f5e8339dfc9e882fae6af3570d69 (patch) | |
tree | 7f6c153c1fbf165fa2e3769e1f7e04e7c9c0d3aa /templates/repo | |
parent | 32145b6de822c5e56424438902b70e1290310bba (diff) | |
download | gitea-3b51c4f3fb42f5e8339dfc9e882fae6af3570d69.tar.gz gitea-3b51c4f3fb42f5e8339dfc9e882fae6af3570d69.zip |
Show review comment box only on a pull request page (#4636)
* Show review comment box only on a pull request page
* Fixed template check
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/diff/box.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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> |