From 4dfc8711171fe0c04bc6b8b224687603026dea46 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 9 Apr 2020 06:09:30 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/views/projects/blob/_blob.html.haml | 2 +- app/views/projects/merge_requests/show.html.haml | 2 ++ app/views/shared/_file_highlight.html.haml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/projects/blob/_blob.html.haml b/app/views/projects/blob/_blob.html.haml index 8e8a6b847df..a0f644717ad 100644 --- a/app/views/projects/blob/_blob.html.haml +++ b/app/views/projects/blob/_blob.html.haml @@ -10,7 +10,7 @@ #blob-content-holder.blob-content-holder - if @code_navigation_path - #js-code-navigation{ data: { code_nav_url: @code_navigation_path, definition_path_prefix: project_blob_path(@project, @ref) } } + #js-code-navigation{ data: { code_navigation_path: @code_navigation_path, blob_path: blob.path, definition_path_prefix: project_blob_path(@project, @ref) } } %article.file-holder = render 'projects/blob/header', blob: blob = render 'projects/blob/content', blob: blob diff --git a/app/views/projects/merge_requests/show.html.haml b/app/views/projects/merge_requests/show.html.haml index 4304a18558e..7e146a36d84 100644 --- a/app/views/projects/merge_requests/show.html.haml +++ b/app/views/projects/merge_requests/show.html.haml @@ -51,6 +51,8 @@ .tab-content#diff-notes-app #js-diff-file-finder + - if native_code_navigation_enabled?(@project) + #js-code-navigation = render "projects/merge_requests/tabs/pane", id: "notes", class: "notes voting_notes" do .row %section.col-md-12 diff --git a/app/views/shared/_file_highlight.html.haml b/app/views/shared/_file_highlight.html.haml index d7e57fc0d01..18f51f0c0c8 100644 --- a/app/views/shared/_file_highlight.html.haml +++ b/app/views/shared/_file_highlight.html.haml @@ -10,7 +10,7 @@ %a.diff-line-num{ href: "#{link}#L#{i}", id: "L#{i}", 'data-line-number' => i } = link_icon = i - .blob-content{ data: { blob_id: blob.id } } + .blob-content{ data: { blob_id: blob.id, path: blob.path } } %pre.code.highlight %code = blob.present.highlight -- cgit v1.2.3