diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 12:06:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 12:06:16 +0300 |
commit | 34b3567c97ecc0f317adae04e10e4d7d8c8830db (patch) | |
tree | 2612572041a8a6121ce9098cabf8724e67a96ea2 /app/presenters | |
parent | 3209c1a49c14cab93eb347bfca59bace30879440 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/release_presenter.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/presenters/release_presenter.rb b/app/presenters/release_presenter.rb index 42463d6dbda..4eed278661c 100644 --- a/app/presenters/release_presenter.rb +++ b/app/presenters/release_presenter.rb @@ -37,6 +37,12 @@ class ReleasePresenter < Gitlab::View::Presenter::Delegated edit_project_release_url(project, release) end + def evidence_file_path + return unless release.evidence.present? + + evidence_project_release_url(project, tag, format: :json) + end + private def can_download_code? |