summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-01 12:08:00 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-01 12:08:00 +0000
commit1a0d6dbdc2ac3047f4953a359ef27ba6e26074ae (patch)
treeddb78a8a0d1350dc767f049a21e0f7d37edaa82c /app/helpers
parentb11f7057d067885619ee3e513751f180b2e8ad85 (diff)
downloadgitlab-ce-1a0d6dbdc2ac3047f4953a359ef27ba6e26074ae.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/releases_helper.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/helpers/releases_helper.rb b/app/helpers/releases_helper.rb
index 6fbef800faa..af51427dc91 100644
--- a/app/helpers/releases_helper.rb
+++ b/app/helpers/releases_helper.rb
@@ -8,8 +8,8 @@ module ReleasesHelper
image_path(IMAGE_PATH)
end
- def help_page
- help_page_path(DOCUMENTATION_PATH)
+ def help_page(anchor: nil)
+ help_page_path(DOCUMENTATION_PATH, anchor: anchor)
end
def data_for_releases_page
@@ -29,7 +29,8 @@ module ReleasesHelper
markdown_preview_path: preview_markdown_path(@project),
markdown_docs_path: help_page_path('user/markdown'),
releases_page_path: project_releases_path(@project, anchor: @release.tag),
- update_release_api_docs_path: help_page_path('api/releases/index.md', anchor: 'update-a-release')
+ update_release_api_docs_path: help_page_path('api/releases/index.md', anchor: 'update-a-release'),
+ release_assets_docs_path: help_page(anchor: 'release-assets')
}
end
end