Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-04 19:35:56 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-26 22:01:40 +0300
commit473591403197c0b0fd985f4f01d59e6e31b57a60 (patch)
tree3ad99c7d8e92c63f69c7637c4a678ffc10d0c599 /app
parentf0bdf5c692fbfe7623eda509f17fe34f7424f141 (diff)
Update syntax
Diffstat (limited to 'app')
-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