summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff/section_unified.tmpl
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-09-17 17:59:49 +0300
committerGitHub <noreply@github.com>2018-09-17 17:59:49 +0300
commit4befec242aa3563f5a8a38bd390d834e4aa2797b (patch)
treef372612f3911ceb304bc6868b051a4c972025013 /templates/repo/diff/section_unified.tmpl
parent756eafaaf68b3cadb3f33f37554a6aa2d83921ef (diff)
downloadgitea-4befec242aa3563f5a8a38bd390d834e4aa2797b.tar.gz
gitea-4befec242aa3563f5a8a38bd390d834e4aa2797b.zip
Code review UI improvements and bugfixes (#4682)
* Code review UI improvements * More fixes to dark theme * Style fix * Fix to allow add code review comments only on review files tab * More readability dark style fixes * Fix commenting on deleted files. Fixes #4752 * Fix line blame getting for multiple corner cases
Diffstat (limited to 'templates/repo/diff/section_unified.tmpl')
-rw-r--r--templates/repo/diff/section_unified.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl
index 491572cded..c65b8bdf3e 100644
--- a/templates/repo/diff/section_unified.tmpl
+++ b/templates/repo/diff/section_unified.tmpl
@@ -16,7 +16,7 @@
</td>
{{end}}
<td class="lines-code {{if (not $line.RightIdx)}}lines-code-old{{end}}">
- {{if and $.root.SignedUserID $line.CanComment}}
+ {{if and $.root.SignedUserID $line.CanComment $.root.PageIsPullFiles}}
<a class="ui green button add-code-comment add-code-comment-{{if $line.RightIdx}}right{{else}}left{{end}}" data-path="{{$file.Name}}" data-side="{{if $line.RightIdx}}right{{else}}left{{end}}" data-idx="{{if $line.RightIdx}}{{$line.RightIdx}}{{else}}{{$line.LeftIdx}}{{end}}">+</a>
{{end}}
<pre><code class="wrap {{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{$section.GetComputedInlineDiffFor $line}}</code></pre>