mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-28 19:46:35 -05:00
feat: add progressbar to upgrade page, text tweaks
This commit is contained in:
@@ -137,6 +137,9 @@ async function updateStripeDonationCache() {
|
||||
hasMore = has_more;
|
||||
}
|
||||
|
||||
donationCache.goal_dollars = donationCache.goal / 100;
|
||||
donationCache.total_dollars = donationCache.total / 100;
|
||||
|
||||
donationCache.completed_real = Math.floor((donationCache.total / donationCache.goal) * 100); // real completion amount
|
||||
donationCache.completed_capped = Math.max(0, Math.min(donationCache.completed_real, 100)); // capped at 100
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ router.get('/', async (request, response) => {
|
||||
const trelloCache = await getTrelloCache();
|
||||
renderData.progressLists = trelloCache;
|
||||
const stripeDonationCache = await getStripeDonationCache();
|
||||
renderData.donation = stripeDonationCache;
|
||||
renderData.donationCache = stripeDonationCache;
|
||||
|
||||
response.render('progress', renderData);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user