summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-04 11:35:56 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-26 14:01:40 -0500
commit473591403197c0b0fd985f4f01d59e6e31b57a60 (patch)
tree3ad99c7d8e92c63f69c7637c4a678ffc10d0c599
parentf0bdf5c692fbfe7623eda509f17fe34f7424f141 (diff)
downloadgitlab-ce-473591403197c0b0fd985f4f01d59e6e31b57a60.tar.gz
Update syntax
-rw-r--r--app/views/projects/diffs/_diffs.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/diffs/_diffs.html.haml b/app/views/projects/diffs/_diffs.html.haml
index 6d2b85ed994..22adebd91e5 100644
--- a/app/views/projects/diffs/_diffs.html.haml
+++ b/app/views/projects/diffs/_diffs.html.haml
@@ -1,4 +1,4 @@
-- show_whitespace_toggle = local_assigns.fetch :show_whitespace_toggle, true
+- show_whitespace_toggle = local_assigns.fetch(:show_whitespace_toggle, true)
- if diff_view == 'parallel'
- fluid_layout true
@@ -9,7 +9,7 @@
- if show_whitespace_toggle
- if current_controller?(:commit)
= commit_diff_whitespace_link(@project, @commit)
- - if current_controller?(:merge_requests)
+ - elsif current_controller?(:merge_requests)
= diff_merge_request_whitespace_link(@project, @merge_request)
.btn-group
= inline_diff_btn