Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-11-07 04:06:33 +0300
committerThong Kuah <tkuah@gitlab.com>2018-11-08 13:28:30 +0300
commitb019224ff2bf6c8282a210eff1e98d0225e98a0c (patch)
tree61cb0f7bcce5fe41354abe68050133c61e3e5fdf /app/presenters/clusterable_presenter.rb
parent85066afb0ffc2ef973a459c23fbb7afa2f939390 (diff)
Refactor to use presenter
Refacotr project or group specific `if` logic to be contained within each presenter instead. Also add :override to ensure super method exists.
Diffstat (limited to 'app/presenters/clusterable_presenter.rb')
-rw-r--r--app/presenters/clusterable_presenter.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/presenters/clusterable_presenter.rb b/app/presenters/clusterable_presenter.rb
index 6de967a58e9..08ff49a8702 100644
--- a/app/presenters/clusterable_presenter.rb
+++ b/app/presenters/clusterable_presenter.rb
@@ -44,7 +44,11 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated
raise NotImplementedError
end
- def project?
+ def empty_state_help_text
+ nil
+ end
+
+ def learn_more_link
raise NotImplementedError
end
end