debian-mirror-gitlab/app/helpers/external_wiki_helper.rb

13 lines
300 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2015-04-26 12:48:37 +05:30
module ExternalWikiHelper
def get_project_wiki_path(project)
2016-08-24 12:49:21 +05:30
external_wiki_service = project.external_wiki
if external_wiki_service
2015-04-26 12:48:37 +05:30
external_wiki_service.properties['external_wiki_url']
else
2017-09-10 17:25:29 +05:30
project_wiki_path(project, :home)
2015-04-26 12:48:37 +05:30
end
end
end