diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-12 15:09:17 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-12 15:09:17 +0000 |
commit | d549d413bb69f87ec26661ec96287bb4b25c32ff (patch) | |
tree | ac50717d0e3db25fd64bd36c1090496c42b24556 /app/views/projects/_files.html.haml | |
parent | 1caab68312013cae5083460ec8e03796daef9341 (diff) | |
download | gitlab-ce-d549d413bb69f87ec26661ec96287bb4b25c32ff.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects/_files.html.haml')
-rw-r--r-- | app/views/projects/_files.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/_files.html.haml b/app/views/projects/_files.html.haml index c278b15cc38..e4eed63f45a 100644 --- a/app/views/projects/_files.html.haml +++ b/app/views/projects/_files.html.haml @@ -4,6 +4,7 @@ - ref = local_assigns.fetch(:ref) { current_ref } - project = local_assigns.fetch(:project) { @project } - add_page_startup_api_call logs_file_project_ref_path(@project, ref, @path, format: "json", offset: 0) +- source = visible_fork_source(@project) - if readme_path = @project.repository.readme_path - add_page_startup_api_call project_blob_path(@project, tree_join(@ref, readme_path), viewer: "rich", format: "json") @@ -17,7 +18,7 @@ = render 'projects/tree/tree_header', tree: @tree, is_project_overview: is_project_overview - if project.forked? && Feature.enabled?(:fork_divergence_counts, @project.fork_source) - = render 'projects/fork_info' + #js-fork-info{ data: { source_name: source ? source.full_name : '', source_path: source ? project_path(source) : '' } } - if is_project_overview .project-buttons.gl-mb-5.js-show-on-project-root{ data: { qa_selector: 'project_buttons' } } |