Module: Routing::WikiHelper
- Included in:
- GitlabRoutingHelper, Projects::AutocompleteService
- Defined in:
- app/helpers/routing/wiki_helper.rb
Instance Method Summary collapse
- #group_wiki_page_url(wiki_meta, **options) ⇒ Object
- #project_wiki_page_url(wiki_meta, **options) ⇒ Object
- #wiki_page_path(wiki, page, **options) ⇒ Object
- #wiki_path(wiki, **options) ⇒ Object
Instance Method Details
#group_wiki_page_url(wiki_meta, **options) ⇒ Object
17 18 19 |
# File 'app/helpers/routing/wiki_helper.rb', line 17 def group_wiki_page_url(, **) group_wiki_url(.namespace, .canonical_slug, **) end |
#project_wiki_page_url(wiki_meta, **options) ⇒ Object
13 14 15 |
# File 'app/helpers/routing/wiki_helper.rb', line 13 def project_wiki_page_url(, **) project_wiki_url(.project, .canonical_slug, **) end |
#wiki_page_path(wiki, page, **options) ⇒ Object
9 10 11 |
# File 'app/helpers/routing/wiki_helper.rb', line 9 def wiki_page_path(wiki, page, **) Gitlab::UrlBuilder.wiki_page_url(wiki, page, only_path: true, **) end |
#wiki_path(wiki, **options) ⇒ Object
5 6 7 |
# File 'app/helpers/routing/wiki_helper.rb', line 5 def wiki_path(wiki, **) Gitlab::UrlBuilder.wiki_url(wiki, only_path: true, **) end |