diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-04-29 18:01:28 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-04-29 18:01:28 +0300 |
commit | 03f136fcd9768e020a43309cce68f07e12bc7174 (patch) | |
tree | 54c5028bdb4b2f7ed6bb225076dd2033b504d90c /app/views/clusters | |
parent | 72c179ef26284c4322bf84a7ed40eae11f40b9c4 (diff) |
Prefer usage of helper `expanded_by_default?`
Stop using `Rails.env.test?` in views.
Diffstat (limited to 'app/views/clusters')
-rw-r--r-- | app/views/clusters/clusters/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/clusters/clusters/show.html.haml b/app/views/clusters/clusters/show.html.haml index e38a16e7a1a..80d706ae3d3 100644 --- a/app/views/clusters/clusters/show.html.haml +++ b/app/views/clusters/clusters/show.html.haml @@ -4,7 +4,7 @@ - page_title _('Kubernetes Cluster') - manage_prometheus_path = edit_project_service_path(@cluster.project, 'prometheus') if @project -- expanded = Rails.env.test? +- expanded = expanded_by_default? - status_path = clusterable.cluster_status_cluster_path(@cluster.id, format: :json) if can?(current_user, :admin_cluster, @cluster) .edit-cluster-form.js-edit-cluster-form{ data: { status_path: status_path, |