Hide the crowdfunding box on the homepage if crowdfunding is disabled

pull/1/head
yflory 6 years ago
parent 74a0252712
commit 881976d0ba

@ -102,7 +102,7 @@ define([
rel: 'noopener', rel: 'noopener',
}); });
var crowdFunding = AppConfig.disableCrowdfundingMessages ? undefined : h('button', [ var crowdFunding = h('button', [
Msg.crowdfunding_button Msg.crowdfunding_button
]); ]);
@ -132,7 +132,7 @@ define([
h('div.col-12.col-sm-4.cp-index-block.cp-index-block-product', h('div', [ h('div.col-12.col-sm-4.cp-index-block.cp-index-block-product', h('div', [
Msg.home_product Msg.home_product
])), ])),
h('div.col-12.col-sm-4.cp-index-block.cp-index-block-help', h('div', [ AppConfig.disableCrowdfundingMessages ? undefined : h('div.col-12.col-sm-4.cp-index-block.cp-index-block-help', h('div', [
Msg.crowdfunding_home1, Msg.crowdfunding_home1,
h('br'), h('br'),
Msg.crowdfunding_home2, Msg.crowdfunding_home2,

Loading…
Cancel
Save