BigW Consortium Gitlab

external_wiki_helper.rb 298 Bytes
Newer Older
1 2
module ExternalWikiHelper
  def get_project_wiki_path(project)
3 4
    external_wiki_service = project.external_wiki
    if external_wiki_service
5 6 7 8 9 10
      external_wiki_service.properties['external_wiki_url']
    else
      namespace_project_wiki_path(project.namespace, project, :home)
    end
  end
end