summaryrefslogtreecommitdiff
path: root/app/views/projects/_files.html.haml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-09 12:09:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-09 12:09:42 +0000
commit1361891b0a87187364d1586395df176a8984e914 (patch)
tree4f47ddf2cd0d06cd0eb98a7bf1b7001504e6416b /app/views/projects/_files.html.haml
parent109562e64e1e1c51fe32a7443df86ee63b856115 (diff)
downloadgitlab-ce-1361891b0a87187364d1586395df176a8984e914.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.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/_files.html.haml b/app/views/projects/_files.html.haml
index 81c42de13f0..6a50d897c98 100644
--- a/app/views/projects/_files.html.haml
+++ b/app/views/projects/_files.html.haml
@@ -3,8 +3,8 @@
- project = local_assigns.fetch(:project) { @project }
- show_auto_devops_callout = show_auto_devops_callout?(@project)
- add_page_startup_api_call logs_file_project_ref_path(@project, ref, @path, format: "json", offset: 0)
-- if @tree.readme
- - add_page_startup_api_call project_blob_path(@project, tree_join(@ref, @tree.readme.path), viewer: "rich", format: "json")
+- 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")
#tree-holder.tree-holder.clearfix
.nav-block