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

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



commit 480354a159498d3626074eb15dd5fc562ea761ce
Author: HackerNCoder <hackerncoder@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@xxxxxx'|asseturl }}">
 	</picture>
       </div>



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