debian-mirror-gitlab/app/helpers/external_wiki_helper.rb
2017-09-10 17:25:29 +05:30

10 lines
269 B
Ruby

module ExternalWikiHelper
def get_project_wiki_path(project)
external_wiki_service = project.external_wiki
if external_wiki_service
external_wiki_service.properties['external_wiki_url']
else
project_wiki_path(project, :home)
end
end
end