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

[tor-commits] [community/staging] homepage: render img based on section_id



commit aa59a59d108fab414610367eb78c59ed81f3e274
Author: Antonela <hola@xxxxxxxxxxx>
Date:   Fri May 24 13:00:11 2019 -0300

    homepage: render img based on section_id
---
 templates/home.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/home.html b/templates/home.html
index 54ccb43..8b6f12f 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -14,7 +14,7 @@
                 <h2 class="card-title ">{{ child.title }}</h2>
                 <p class="card-text">{{ child.subtitle }}</p>
                 <div class="illo-container">
-                  <img src="{{ '/static/images/home/png/localization.png'|asseturl }}" class="img-fluid" alt="{{ _("Localization") }}" />
+                  <img src="/static/images/home/png/{{ child.section_id }}.png" class="img-fluid" alt="{{ child.section }}" />
                 </div>
               </div>
               <a href="{{ child.path|url }}" class="btn btn-primary">{{ child.cta }}</a>



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