[tor-commits] [lego/master] Localize all links in the footer

hiro at torproject.org hiro at torproject.org
Mon Nov 25 16:59:00 UTC 2019


commit dc998ccf3170970f3d232f621f323c3c9e8eabeb
Author: hiro <hiro at torproject.org>
Date:   Mon Nov 25 17:58:46 2019 +0100

    Localize all links in the footer
---
 templates/footer.html | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/templates/footer.html b/templates/footer.html
index 246c133..646e073 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -36,7 +36,12 @@
           {% if link %}
             <a class="nav-link text-light" href="{{ item.path|url(alt=this.alt) }}">
           {% else %}
-            <a class="nav-link text-light" href="{{ item.path }}">
+            {% set link = bag('links', this.alt, id) %}
+            {% if link %}
+              <a class="nav-link text-light" href="{{ link }}">
+            {% else %}
+              <a class="nav-link text-light" href="{{ item.path }}">
+            {% endif %}
           {% endif %}
               {{ _(item.label) }}
               {% if this.is_child_of(item.path) %}



More information about the tor-commits mailing list