-
-
Couldn't load subscription status.
- Fork 6.2k
Show review comment box only on a pull request page #4636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show review comment box only on a pull request page #4636
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4636 +/- ##
=======================================
Coverage 20.63% 20.63%
=======================================
Files 166 166
Lines 32261 32261
=======================================
Hits 6657 6657
Misses 24626 24626
Partials 978 978Continue to review full report at Codecov.
|
|
LGTM |
templates/repo/diff/box.tmpl
Outdated
| <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 (.PageIsPullFiles) and $.SignedUserID}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be: and .PageIsPullFiles $.SignedUserID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed @lafriks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment
…o/gitea into show_review_form_only_on_pr_pages
Fixes #4625 as per @lunny 's #4625 (comment)