summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/helpers/ci_status_helper.rb2
-rw-r--r--app/presenters/ci/pipeline_presenter.rb (renamed from app/presenters/ci/pipeline_status_badge_presenter.rb)2
-rw-r--r--app/serializers/pipeline_entity.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb
index da4826567d4..2db95729dd9 100644
--- a/app/helpers/ci_status_helper.rb
+++ b/app/helpers/ci_status_helper.rb
@@ -123,6 +123,6 @@ module CiStatusHelper
end
def status_title(pipeline)
- Ci::PipelineStatusBadgePresenter.new(pipeline).status_title
+ Ci::PipelinePresenter.new(pipeline).status_title
end
end
diff --git a/app/presenters/ci/pipeline_status_badge_presenter.rb b/app/presenters/ci/pipeline_presenter.rb
index ac6325dd5fa..8f9e4fa707d 100644
--- a/app/presenters/ci/pipeline_status_badge_presenter.rb
+++ b/app/presenters/ci/pipeline_presenter.rb
@@ -1,5 +1,5 @@
module Ci
- class PipelineStatusBadgePresenter < Gitlab::View::Presenter::Delegated
+ class PipelinePresenter < Gitlab::View::Presenter::Delegated
presents :pipeline
def auto_canceled?
diff --git a/app/serializers/pipeline_entity.rb b/app/serializers/pipeline_entity.rb
index 82ee960f530..c6b80dc0952 100644
--- a/app/serializers/pipeline_entity.rb
+++ b/app/serializers/pipeline_entity.rb
@@ -84,6 +84,6 @@ class PipelineEntity < Grape::Entity
end
def status_tooltip
- Ci::PipelineStatusBadgePresenter.new(pipeline).status_title
+ Ci::PipelinePresenter.new(pipeline).status_title
end
end