commit f784afdc34d755bdff1b7fae7a70eeab037715eb Author: kez kez@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/%7B%7B 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">
tor-commits@lists.torproject.org