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

[tor-commits] [lego/master] Fixed donate header URL path



commit 96b2d9518869f95e3dbcc9c9af1f05c5d7f769b4
Author: Peter Haight <peterh@xxxxxxxxxxxxxxx>
Date:   Thu Oct 15 12:59:58 2020 -0700

    Fixed donate header URL path
    
    We need to use the asseturl filter or the image won't show up if the
    site is served from a subdirectory.
---
 templates/header.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/header.html b/templates/header.html
index 4207aab..87e8ee2 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -14,7 +14,7 @@
         <div class="col-12 content-center pt-5 donate-has-image">
           <div class="row pb-5">
             <h2 class="mx-auto display-3 text-white text-capitalize donate-title">{{ this.title }}</h2>
-            <img src="{{ this.header_image }}" class="donate-header-image" />
+            <img src="{{ this.header_image | asseturl }}" class="donate-header-image" />
           </div>
         </div>
         {% else %}



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