From 14722b66a1ee0dd711a631a8d48e8761334ed4a4 Mon Sep 17 00:00:00 2001 From: Rydkin Maxim Date: Tue, 28 Mar 2017 20:47:11 +0300 Subject: [PATCH] rename pipeline_presenter --- app/helpers/ci_status_helper.rb | 2 +- ...pipeline_status_badge_presenter.rb => pipeline_presenter.rb} | 2 +- app/serializers/pipeline_entity.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename app/presenters/ci/{pipeline_status_badge_presenter.rb => pipeline_presenter.rb} (77%) 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 similarity index 77% rename from app/presenters/ci/pipeline_status_badge_presenter.rb rename to 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