const $grid = $('#processes-grid'); const $loading = $grid.find('.loading'); $grid.find('.card-grid').html('<%= j(render(collection) || render(partial: "no_processes_yet")).strip.html_safe %>'); $grid.find('.processes-grid-order-by').html('<%= j(render(partial: "decidim/participatory_processes/order_by_processes", locals: { include_filter: true })).strip.html_safe %>'); $loading.hide();