summaryrefslogtreecommitdiff
path: root/app/views/projects/_files.html.haml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-12 15:09:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-12 15:09:17 +0000
commitd549d413bb69f87ec26661ec96287bb4b25c32ff (patch)
treeac50717d0e3db25fd64bd36c1090496c42b24556 /app/views/projects/_files.html.haml
parent1caab68312013cae5083460ec8e03796daef9341 (diff)
downloadgitlab-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.haml3
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' } }