[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/master] Check if page is a donate page through _model field
commit 06357983d14c55f469594198b3c0663a230e7824
Author: kez <kez@xxxxxxxxxxxxxx>
Date: Tue Jun 22 09:52:28 2021 -0400
Check if page is a donate page through _model field
---
templates/header.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/header.html b/templates/header.html
index ce9bb9b..c4a5e6f 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -10,7 +10,7 @@
<div class="container {% if this.header_color %} bg-{{ this.header_color }} {% else %} bg-dark {% endif %}git py-4">
{% endif %}
<div class="row">
- {% if this.html == 'donate-form.html' and this.header_image|length %}
+ {% if this._model == 'donate-form' and this.header_image|length %}
<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="{{ this.header_image | asseturl }}" class="donate-header-image img-fluid" />
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits