diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-15 13:19:49 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-23 15:37:05 -0500 |
commit | 7c479d88a92233790bc0fb63146fe004f8b9b5d7 (patch) | |
tree | 3691c9e55229b145ea631bca724ba4da8c467d70 /app/views/projects/diffs/_file_header.html.haml | |
parent | 7e09a9b7dcef125af2e775869754a3327935b12d (diff) | |
download | gitlab-ce-7c479d88a92233790bc0fb63146fe004f8b9b5d7.tar.gz |
Pass fallback_diff_refs to Diff::File instead of using view helpers
Diffstat (limited to 'app/views/projects/diffs/_file_header.html.haml')
-rw-r--r-- | app/views/projects/diffs/_file_header.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_file_header.html.haml b/app/views/projects/diffs/_file_header.html.haml index 3ce963e06ba..73c316472e3 100644 --- a/app/views/projects/diffs/_file_header.html.haml +++ b/app/views/projects/diffs/_file_header.html.haml @@ -4,11 +4,12 @@ %i.fa.diff-toggle-caret.fa-fw - if diff_file.submodule? + - blob = diff_file.blob %span = icon('archive fw') %strong.file-title-name - = submodule_link(blob, diff_commit.id, diff_file.repository) + = submodule_link(blob, diff_file.content_sha, diff_file.repository) = copy_file_path_button(blob.path) - else |