From b8327dcc5e64fee3e513c26cae3201681e3b4315 Mon Sep 17 00:00:00 2001 From: aamustapha Date: Tue, 1 Dec 2020 15:43:11 +0100 Subject: [PATCH] Make active CLR rounds togglable --- app/assets/v2/js/grants/index.js | 1 + .../grants/shared/active_clr_round.html | 74 +++++++++++-------- 2 files changed, 43 insertions(+), 32 deletions(-) diff --git a/app/assets/v2/js/grants/index.js b/app/assets/v2/js/grants/index.js index 844e614e0bf..3d3be9ee25f 100644 --- a/app/assets/v2/js/grants/index.js +++ b/app/assets/v2/js/grants/index.js @@ -154,6 +154,7 @@ if (document.getElementById('grants-showcase')) { data: { grants: [], page: 1, + show_active_clrs: true, collectionsPage: 1, limit: 6, sort: 'weighted_shuffle', diff --git a/app/grants/templates/grants/shared/active_clr_round.html b/app/grants/templates/grants/shared/active_clr_round.html index b76a8147011..f0030360d15 100644 --- a/app/grants/templates/grants/shared/active_clr_round.html +++ b/app/grants/templates/grants/shared/active_clr_round.html @@ -1,35 +1,45 @@ -
-