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