2015-01-08 17:15:50 +00:00
|
|
|
module ExternalWikiHelper
|
|
|
|
def get_project_wiki_path(project)
|
2016-07-17 14:32:11 +00:00
|
|
|
external_wiki_service = project.external_wiki
|
|
|
|
if external_wiki_service
|
2015-01-08 17:15:50 +00:00
|
|
|
external_wiki_service.properties['external_wiki_url']
|
|
|
|
else
|
2017-06-29 17:06:35 +00:00
|
|
|
project_wiki_path(project, :home)
|
2015-01-08 17:15:50 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|