[tor-commits] [lego/master] Use tag line and link in header template

hiro at torproject.org hiro at torproject.org
Wed Nov 18 13:05:32 UTC 2020


commit 35d2ae7fd87a38cf72aff40c0f06877d6b48a448
Author: hiro <hiro at torproject.org>
Date:   Wed Nov 18 14:05:29 2020 +0100

    Use tag line and link in header template
---
 templates/header.html | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/templates/header.html b/templates/header.html
index 15da4bf..d1895ad 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -17,11 +17,11 @@
             {% set idx = this.header_image.index(".png") %}
             {% set header_mobile = this.header_image[:idx] + "-mobile" + this.header_image[idx:] %}
             <img src="{{ header_mobile | asseturl }}" class="donate-header-image-mobile img-fluid" />
-            
-            <div class="text-center py-3">
-              <a href="https://blog.torproject.org/friends-of-tor-match-2020" target="_blank" title="Friends of Tor" class="match">{{ _('Your donation will be matched by Friends of Tor, up to $100,000.') }}</a>
-            </div>  
-
+            {% if this.header_tag_line %}
+              <div class="text-center py-3">
+                <a href="{{ this.header_tag_link }}" title="Friends of Tor" class="match">{{ _({{ this.header_tag_line }}) }}</a>
+              </div>
+            {% endif %}
         </div>
         {% else %}
         <div class="col-12 content-center pt-5">



More information about the tor-commits mailing list