From 413c531339806aaef1a843cb4a3284e2637d9408 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Fri, 10 Feb 2023 14:39:18 +0100 Subject: [PATCH] fix --- .../admin/communication/websites/pages/_list.html.erb | 2 +- .../admin/communication/websites/posts/_list.html.erb | 8 ++++---- app/views/admin/education/programs/_list.html.erb | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/admin/communication/websites/pages/_list.html.erb b/app/views/admin/communication/websites/pages/_list.html.erb index 2ebd9fe4a..b72267cf6 100644 --- a/app/views/admin/communication/websites/pages/_list.html.erb +++ b/app/views/admin/communication/websites/pages/_list.html.erb @@ -1,5 +1,5 @@ <% - hide_buttons |= false + hide_buttons ||= false %> <div class="table-responsive"> <table class="<%= table_classes %>"> diff --git a/app/views/admin/communication/websites/posts/_list.html.erb b/app/views/admin/communication/websites/posts/_list.html.erb index 4a073f66a..0da0f7042 100644 --- a/app/views/admin/communication/websites/posts/_list.html.erb +++ b/app/views/admin/communication/websites/posts/_list.html.erb @@ -1,8 +1,8 @@ <% - hide_author |= false - hide_category |= false - hide_buttons |= false - selectable |= false + hide_author ||= false + hide_category ||= false + hide_buttons ||= false + selectable ||= false %> <% if selectable %> <input type="hidden" name="ids[]" value=""> diff --git a/app/views/admin/education/programs/_list.html.erb b/app/views/admin/education/programs/_list.html.erb index f8aef8985..2a3e43b88 100644 --- a/app/views/admin/education/programs/_list.html.erb +++ b/app/views/admin/education/programs/_list.html.erb @@ -1,6 +1,6 @@ <% - hide_diploma |= false - hide_parent |= false + hide_diploma ||= false + hide_parent ||= false %> <div class="table-responsive"> <table class="<%= table_classes %>"> -- GitLab