2018-08-18 07:19:57 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-01-08 12:15:50 -05:00
|
|
|
module ExternalWikiHelper
|
|
|
|
def get_project_wiki_path(project)
|
2016-07-17 10:32:11 -04:00
|
|
|
external_wiki_service = project.external_wiki
|
|
|
|
if external_wiki_service
|
2015-01-08 12:15:50 -05:00
|
|
|
external_wiki_service.properties['external_wiki_url']
|
|
|
|
else
|
2017-06-29 13:06:35 -04:00
|
|
|
project_wiki_path(project, :home)
|
2015-01-08 12:15:50 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|