campaign: Add counter for the FLM match.
authorWerner Koch <wk@gnupg.org>
Fri, 16 Jun 2017 13:00:21 +0000 (15:00 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 16 Jun 2017 13:00:33 +0000 (15:00 +0200)
tools/mkkudos.sh
web/donate/index.de.org
web/donate/index.org

index b358643..3db6743 100755 (executable)
@@ -311,6 +311,16 @@ for file in "$htdocs/donate/"kudos-????.html "$htdocs/donate/"kudos.html \
                   substr($0,1,n), format_number(recur_nyr);
            next
      }
+     /<!--CMPGN-FLM-USD-->/ {
+           n = index($0,"<!--CMPGN");
+           xflm = int((12 * ( int(recur_euroyr) - 2400 )) * 1.1166 );
+           if (xflm > 25000) {
+               xflm = 25000;
+           }
+           printf "%s!--CMPGN-FLM-USD-->%s\n",
+                  substr($0,1,n), format_number( xflm );
+           next
+     }
      !indon { print }
 
      function format_number (n) {
index f3cf109..1e2c61a 100644 (file)
@@ -179,8 +179,8 @@ href="/cgi-bin/procdonate.cgi?mode=preset&lang=de"
               Intercept</a> und Laura
               Poitras <a href="https://fieldofvision.org/">Field of
               Vision</a>, <b>innerhalb der ersten 12 Monate den
-              gleichen Betrag noch einmal spenden</b> (bis zu
-              25&#x202f;000&nbsp;USD)!
+              gleichen Betrag noch einmal spenden</b> (<!--CMPGN-FLM-USD-->
+              von 25&#x202f;000&nbsp;USD erreicht)!
           </p>
         </div>
       </div>
index 604db2d..d333a04 100644 (file)
             of <a href="https://theintercept.com/">The Intercept</a> and
             Laura Poitras' <a href="https://fieldofvision.org/">Field of
               Vision</a>, <b>will match the first 12 months</b> of your
-              gift (up to 25&#x202f;000&nbsp;USD)!
+              gift (<!--CMPGN-FLM-USD-->
+              of 25&#x202f;000&nbsp;USD secured)!
           </p>
         </div>
       </div>