summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-05-21 12:33:42 +0000
committerSean McGivern <sean@gitlab.com>2019-05-21 12:33:42 +0000
commit9bb2f02db63daf6901298564475da82533748f56 (patch)
tree2abf745a68bba239b9aacb3e5b8afd46dda55ed5
parentd43fd46c678ddd96f68beeeebbf1b6d5e4a85a86 (diff)
downloadgitlab-ce-9bb2f02db63daf6901298564475da82533748f56.tar.gz
Makes 'diff/content' partial use instance method
There's a method defined on viewer that does the conditional.
-rw-r--r--app/views/projects/diffs/_content.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_content.html.haml b/app/views/projects/diffs/_content.html.haml
index 68f74f702ea..590fcdb0234 100644
--- a/app/views/projects/diffs/_content.html.haml
+++ b/app/views/projects/diffs/_content.html.haml
@@ -1,2 +1,2 @@
.diff-content
- = render 'projects/diffs/viewer', viewer: diff_file.rich_viewer || diff_file.simple_viewer
+ = render 'projects/diffs/viewer', viewer: diff_file.viewer