summaryrefslogtreecommitdiff
path: root/app/views/projects/diffs/_diffs.html.haml
diff options
context:
space:
mode:
authorHerminio Torres <herminiocesar@gmail.com>2016-08-04 01:04:01 -0300
committerHerminio Torres <herminiocesar@gmail.com>2016-08-04 01:22:54 -0300
commitbb193801f892490d64cfe34563a77a7ae90ff5d8 (patch)
treeead69173cd499ebe6b6d2666387666689e8017d9 /app/views/projects/diffs/_diffs.html.haml
parent532202a5278a622de874b9dfc1c4f7fe9ddf5ce4 (diff)
downloadgitlab-ce-bb193801f892490d64cfe34563a77a7ae90ff5d8.tar.gz
Fix Mystery Guest
Magic Variable - Change the name of the variable to assign the local variable for partial, rather than `i` use the `index`. Don't pass a local variable called `i` to a partial.
Diffstat (limited to 'app/views/projects/diffs/_diffs.html.haml')
-rw-r--r--app/views/projects/diffs/_diffs.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_diffs.html.haml b/app/views/projects/diffs/_diffs.html.haml
index 20dc280c3b2..ebaf939f930 100644
--- a/app/views/projects/diffs/_diffs.html.haml
+++ b/app/views/projects/diffs/_diffs.html.haml
@@ -29,5 +29,5 @@
- next unless blob
- blob.load_all_data!(diffs.project.repository) unless blob.only_display_raw?
- = render 'projects/diffs/file', i: index, project: diffs.project,
+ = render 'projects/diffs/file', index: index, project: diffs.project,
diff_file: diff_file, diff_commit: diff_commit, blob: blob