[tor-commits] [lego/master] Hide donate button from navbar for the duration of the campaign

kez at torproject.org kez at torproject.org
Wed Nov 3 20:47:52 UTC 2021


commit f784afdc34d755bdff1b7fae7a70eeab037715eb
Author: kez <kez at torproject.org>
Date:   Wed Nov 3 13:47:09 2021 -0700

    Hide donate button from navbar for the duration of the campaign
    
    https://gitlab.torproject.org/tpo/web/lego/-/issues/35
---
 templates/navbar.html | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/templates/navbar.html b/templates/navbar.html
index e47a9b8..6ff3080 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -14,11 +14,13 @@
       <span class="sr-only">Tor Logo</span>
     </a>
 
+    {# TODO: the following lines were commented out to remove the donate navbar button during the '21 year-end campaign #}
+    {# TODO: uncomment them when the campaign is over #}
     {% set link = bag('links', this.alt, 'donate') %}
     {% if link %}
-      <h4 class="pl-2 pr-2"><a href="{{ link }}" title="{{ _("Donate") }}"><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></a></h4>
+      <!--h4 class="pl-2 pr-2"><a href="{{ link }}" title="{{ _("Donate") }}"><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></a></h4-->
     {% else %}
-      <h4 class="pl-2 pr-2"><a href="https://www.torproject.org/donate/{{ this.alt }}" title="{{ _("Donate") }}"><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></a></h4>
+      <!--h4 class="pl-2 pr-2"><a href="https://www.torproject.org/donate/{{ this.alt }}" title="{{ _("Donate") }}"><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></a></h4-->
     {% endif %}
 
     <label for="nav-toggle">



More information about the tor-commits mailing list