[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/master] Localize all links in the footer
commit dc998ccf3170970f3d232f621f323c3c9e8eabeb
Author: hiro <hiro@xxxxxxxxxxxxxx>
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) %}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits