[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tpo/staging] Donate button is back



commit dd1e1ff689b5af8924e35af2da14dbaec4366089
Author: Antonela <hola@xxxxxxxxxxx>
Date:   Fri Feb 21 13:23:36 2020 -0300

    Donate button is back
---
 templates/navbar-min.html | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/templates/navbar-min.html b/templates/navbar-min.html
index f9d2bc77..3eb4ba16 100644
--- a/templates/navbar-min.html
+++ b/templates/navbar-min.html
@@ -14,6 +14,13 @@
       <span class="sr-only">Tor Logo</span>
     </a>
 
+    {% 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>
+    {% 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>
+    {% endif %}
+    
     </div>
   </nav>
 </div>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits