Add setting `FUND_INCOME_TARGET_LABEL`
authorSybren A. Stüvel <sybren@stuvel.eu>
Tue, 16 Jul 2019 12:16:05 +0000 (14:16 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Tue, 16 Jul 2019 12:16:05 +0000 (14:16 +0200)
Now both the Fund income target itself (the money) and the label text are
configurable via the settings system.

blender_fund/settings_common.py
websrc/templates/blender_fund/landing.pug

index c216a848dda851d0d9fac5ff529c8df14589b934..702d118dea8f1de9be86d830716c0b156fbc55ae 100644 (file)
@@ -222,6 +222,7 @@ LOOPER_CONVERTION_RATES_FROM_EURO = {
 
 # Blender Fund income targets in €, used for themometer on landing page.
 FUND_INCOME_TARGET = Money('EUR', cents=2_000 * 100)
+FUND_INCOME_TARGET_LABEL = '½ developers'
 SHOW_THERMOMETER = False
 
 
index faee2f34f5cdcf52287317ca30c65479e6a0fc42..7f1918fb4e333c6be5f0e8431efdeb8b014f7d5f 100644 (file)
@@ -38,7 +38,7 @@
                                        | {{ summed_income.with_currency_symbol_rounded }} / month
 
                        .progress-label.final.ml-auto(title="Final Milestone")
-                               | #[strong 10 Developers] #[span {{currency_symbol}}&nbsp;{{thermo_high}}k / month]
+                               | #[strong {{settings.FUND_INCOME_TARGET_LABEL}}] #[span {{currency_symbol}}&nbsp;{{thermo_high}}k / month]
 
                .progress.bg-white.position-relative
                        //- Tiny heart at the halfway point marks the first milestone reached!