[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/master] Try and use same banner for donate page
commit fd2d01b3ca8ac0312124e68f5897c056471e9751
Author: HackerNCoder <hackerncoder@encryptionin.space>
Date: Tue Oct 19 15:44:39 2021 +0000
Try and use same banner for donate page
---
templates/banner.html | 16 ++++++++++------
templates/header.html | 5 +++--
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/templates/banner.html b/templates/banner.html
index 51851ef..6fa20f6 100644
--- a/templates/banner.html
+++ b/templates/banner.html
@@ -27,12 +27,16 @@
</div>
</div> -->
<div class="row py-3">
- {% set link = bag('links', this.alt, 'donate') %}
- {% if link %}
- <a class="rectangle" href="{{ link }}">{{ _('Donate now') }}</a>
- {% else %}
- <a class="rectangle" href="https://torproject.org/donate/donate-usetor-hp1">{{ _('DONATE NOW') }}</a>
- {% endif %}
+ {% if this._model == 'donate-form' %}
+ <a class="rectangle" href="#giving-form">{{ _('Donate now') }}</a>
+ {% else %}
+ {% set link = bag('links', this.alt, 'donate') %}
+ {% if link %}
+ <a class="rectangle" href="{{ link }}">{{ _('Donate now') }}</a>
+ {% else %}
+ <a class="rectangle" href="https://torproject.org/donate/donate-usetor-hp1">{{ _('DONATE NOW') }}</a>
+ {% endif %}
+ {% endif %}
</div>
</div>
</div>
diff --git a/templates/header.html b/templates/header.html
index e5c0c71..2e97a87 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -11,7 +11,8 @@
{% endif %}
<div class="row">
{% if this._model == 'donate-form' and this.header_image|length %}
- <div class="col-12 content-center pt-1 pt-sm-0 donate-has-image">
+ {% include 'banner.html' %}
+ {# <div class="col-12 content-center pt-1 pt-sm-0 donate-has-image">
<h2 class="mx-auto display-3 text-white text-capitalize donate-title">{{ this.title }}</h2>
<img src="{{ '/static/css/images/home/png/yec-activist-light-en@xxxxxx' | asseturl }}" class="donate-header-image img-fluid" />
<!--{% set idx = this.header_image.index(".png") %}
@@ -22,7 +23,7 @@
<a href="{{ this.header_tag_link.ascii_url }}" title="Friends of Tor" class="match">{{ _( this.header_tag_line ) }}</a>
</div>
{% endif %}
- </div>
+ </div> #}
{% else %}
<div class="col-12 content-center pt-5">
<div class="row">
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits