[tor-commits] [lego/master] Working translated image or fallback

kez at torproject.org kez at torproject.org
Mon Oct 25 00:10:56 UTC 2021


commit 480354a159498d3626074eb15dd5fc562ea761ce
Author: HackerNCoder <hackerncoder at encryptionin.space>
Date:   Tue Oct 19 18:36:45 2021 +0000

    Working translated image or fallback
---
 templates/banner.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/banner.html b/templates/banner.html
index 03a8fc7..15e0717 100644
--- a/templates/banner.html
+++ b/templates/banner.html
@@ -38,7 +38,8 @@
       <div class="col-1 px-0"></div>
       <div class="col-lg-4 col-md-4 col-10 pt-0 px-0 illo-container position-relative">
         <picture class="banner-img-style">
-          <source srcset="{{ '/static/css/images/home/png/yec-activist-{% this.alt %}@3x.png'|asseturl }}">
+          {% set image = '/static/css/images/home/png/yec-activist-' + this.locale + '@3x.png' %}
+          <source srcset="{{ image|asseturl }}">
 	  <img src="{{ '/static/css/images/home/png/yec-activist-en at 3x.png'|asseturl }}">
 	</picture>
       </div>





More information about the tor-commits mailing list