summaryrefslogtreecommitdiff
path: root/app/helpers/namespaces_helper.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-20 12:26:25 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-20 12:26:25 +0000
commita09983ae35713f5a2bbb100981116d31ce99826e (patch)
tree2ee2af7bd104d57086db360a7e6d8c9d5d43667a /app/helpers/namespaces_helper.rb
parent18c5ab32b738c0b6ecb4d0df3994000482f34bd8 (diff)
downloadgitlab-ce-a09983ae35713f5a2bbb100981116d31ce99826e.tar.gz
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'app/helpers/namespaces_helper.rb')
-rw-r--r--app/helpers/namespaces_helper.rb39
1 files changed, 0 insertions, 39 deletions
diff --git a/app/helpers/namespaces_helper.rb b/app/helpers/namespaces_helper.rb
index b9f8d81bc4e..81451e398f2 100644
--- a/app/helpers/namespaces_helper.rb
+++ b/app/helpers/namespaces_helper.rb
@@ -56,45 +56,6 @@ module NamespacesHelper
namespaces_options(selected, options)
end
- def namespace_storage_alert(namespace)
- return {} if current_user.nil?
-
- payload = Namespaces::CheckStorageSizeService.new(namespace, current_user).execute.payload
-
- return {} if payload.empty?
-
- alert_level = payload[:alert_level]
- root_namespace = payload[:root_namespace]
-
- return {} if cookies["hide_storage_limit_alert_#{root_namespace.id}_#{alert_level}"] == 'true'
-
- payload
- end
-
- def namespace_storage_alert_style(alert_level)
- if alert_level == :error || alert_level == :alert
- 'danger'
- else
- alert_level.to_s
- end
- end
-
- def namespace_storage_alert_icon(alert_level)
- if alert_level == :error || alert_level == :alert
- 'error'
- elsif alert_level == :info
- 'information-o'
- else
- alert_level.to_s
- end
- end
-
- def namespace_storage_usage_link(namespace)
- # The usage quota page is only available in EE. This will be changed in
- # the future, see https://gitlab.com/gitlab-org/gitlab/-/issues/220042.
- nil
- end
-
private
# Many importers create a temporary Group, so use the real