diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-03 00:11:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-03 00:11:07 +0300 |
commit | eb1755b2d90efcc161774f66ccd2317ad4c471de (patch) | |
tree | 9404125b4bec27588f2a479470e46a27043d94f0 /app/presenters | |
parent | bf2439c21308c74e437b872180046b39a61734b5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/ci/build_runner_presenter.rb | 4 | ||||
-rw-r--r-- | app/presenters/dev_ops_report/metric_presenter.rb | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/app/presenters/ci/build_runner_presenter.rb b/app/presenters/ci/build_runner_presenter.rb index dbb77143e2e..769b793ee75 100644 --- a/app/presenters/ci/build_runner_presenter.rb +++ b/app/presenters/ci/build_runner_presenter.rb @@ -32,6 +32,10 @@ module Ci end.to_i end + def runner_variables + variables.to_runner_variables + end + def refspecs specs = [] specs << refspec_for_persistent_ref if persistent_ref_exist? diff --git a/app/presenters/dev_ops_report/metric_presenter.rb b/app/presenters/dev_ops_report/metric_presenter.rb index e7363293435..b31dfd25a87 100644 --- a/app/presenters/dev_ops_report/metric_presenter.rb +++ b/app/presenters/dev_ops_report/metric_presenter.rb @@ -2,6 +2,8 @@ module DevOpsReport class MetricPresenter < Gitlab::View::Presenter::Simple + delegate :created_at, to: :subject + def cards [ Card.new( |