summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
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