Use readme path to load readme on init
This commit is contained in:
parent
d47273f2f2
commit
e38f6fcb54
1 changed files with 5 additions and 1 deletions
|
@ -13,7 +13,11 @@ module TreeHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def repo_url(project)
|
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
|
end
|
||||||
|
|
||||||
# Return an image icon depending on the file type and mode
|
# Return an image icon depending on the file type and mode
|
||||||
|
|
Loading…
Reference in a new issue