[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/master] Fix templates
commit bcc9aeb57bb61db39a8964c3427682466ebbc743
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Fri Aug 23 14:05:44 2019 +0200
Fix templates
---
databags/menu_footer+en.ini | 6 +++---
templates/footer.html | 4 ++--
templates/navbar.html | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/databags/menu_footer+en.ini b/databags/menu_footer+en.ini
index 51d909b..c997390 100644
--- a/databags/menu_footer+en.ini
+++ b/databags/menu_footer+en.ini
@@ -1,5 +1,5 @@
[jobs]
-path = https://www.torproject.org/about/jobs
+path = https://www.torproject.org/about/jobs/
label = Jobs
[blog]
@@ -7,9 +7,9 @@ path = https://blog.torproject.org
label = Blog
[contact]
-path = https://www.torproject.org/contact
+path = https://www.torproject.org/contact/
label = Contact
[press]
-path = https://www.torproject.org/press
+path = https://www.torproject.org/press/
label = Press
diff --git a/templates/footer.html b/templates/footer.html
index 438d404..6168ca4 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -35,10 +35,10 @@
{% set link = site.get(item.path) %}
{% if link %}
<a class="nav-link text-light" href="{{ item.path|url(alt=this.alt) }}">
- {% elif item.label == "Documentation" or item.label == "Blog" %}
+ {% elif item.label == "Documentation" or item.label == "Blog" or item.label == "Jobs" %}
<a class="nav-link text-light" href="{{ item.path }}">
{% else %}
- <a class="nav-link text-light" href="{{ item.path }}/{{ this.alt }}">
+ <a class="nav-link text-light" href="{{ item.path }}{{ this.alt }}">
{% endif %}
{{ _(item.label) }}
{% if this.is_child_of(item.path) %}
diff --git a/templates/navbar.html b/templates/navbar.html
index f15f215..db78178 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -28,7 +28,7 @@
{% set link = site.get(item.path) %}
{% if link %}
<a class="nav-link" href="{{ item.path|url(alt=this.alt) }}">
- {% elif item.label == "Documentation" or item.label == "Blog" %}
+ {% elif item.label == "Documentation" or item.label == "Blog" or item.label == "Jobs" %}
<a class="nav-link" href="{{ item.path }}">
{% else %}
<a class="nav-link" href="{{ item.path }}{{ this.alt }}">
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits