Use readme path to load readme on init

This commit is contained in:
Luke "Jared" Bennett 2017-07-20 23:34:14 +01:00
parent d47273f2f2
commit e38f6fcb54
No known key found for this signature in database
GPG key ID: 402ED51FB5D306C2

View file

@ -13,7 +13,11 @@ module TreeHelper
end
def repo_url(project)
controller_name == 'projects' ? project_tree_url(project, project.default_branch) : request.original_url
if controller_name == 'projects'
readme_path(project)
else
request.original_url
end
end
# Return an image icon depending on the file type and mode