2020-04-22 19:07:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Releases
|
|
|
|
class EvidencePresenter < Gitlab::View::Presenter::Delegated
|
|
|
|
include ActionView::Helpers::UrlHelper
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
presents ::Releases::Evidence, as: :evidence
|
2020-04-22 19:07:51 +05:30
|
|
|
|
|
|
|
def filepath
|
|
|
|
release = evidence.release
|
|
|
|
project = release.project
|
|
|
|
|
|
|
|
project_evidence_url(project, release, evidence, format: :json)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|