diff options
Diffstat (limited to 'app/presenters/merge_request_presenter.rb')
-rw-r--r-- | app/presenters/merge_request_presenter.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/app/presenters/merge_request_presenter.rb b/app/presenters/merge_request_presenter.rb index d19d4964524..eeb94a8e657 100644 --- a/app/presenters/merge_request_presenter.rb +++ b/app/presenters/merge_request_presenter.rb @@ -136,7 +136,7 @@ class MergeRequestPresenter < Gitlab::View::Presenter::Delegated pipeline: :gfm, author: author, project: project, - issuable_state_filter_enabled: true + issuable_reference_expansion_enabled: true ) end @@ -146,7 +146,7 @@ class MergeRequestPresenter < Gitlab::View::Presenter::Delegated pipeline: :gfm, author: author, project: project, - issuable_state_filter_enabled: true + issuable_reference_expansion_enabled: true ) end @@ -254,6 +254,13 @@ class MergeRequestPresenter < Gitlab::View::Presenter::Delegated end end + delegator_override :pipeline_coverage_delta + def pipeline_coverage_delta + return unless merge_request.pipeline_coverage_delta.present? + + '%.2f' % merge_request.pipeline_coverage_delta + end + private def cached_can_be_reverted? |