[tor-commits] [manual/translations] Fix active 'nav-item' in side nav mobile view

emmapeel at torproject.org emmapeel at torproject.org
Sat Apr 11 06:26:42 UTC 2020


commit 65d480f8ddb5bcbf25f486e5deca5821940061dd
Author: Nicolei Ocana <nicoleiocana at gmail.com>
Date:   Wed Apr 1 18:42:43 2020 +0000

    Fix active 'nav-item' in side nav mobile view
---
 templates/sidenav.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/sidenav.html b/templates/sidenav.html
index 3a154a1..9fab4c0 100644
--- a/templates/sidenav.html
+++ b/templates/sidenav.html
@@ -15,7 +15,7 @@
       <ul class="nav nav-pills flex-column">
 	{% set topicbag = 'topics' %}
 	{% for id, item in bag(topicbag).items() %}
-	<li{% if this.is_child_of(item.path) %} class="nav-item" {% else %} class="toc-entry toc-h2 nav-item"{% endif %}>
+	<li{% if this.is_child_of(item.path) %} class="toc-entry toc-h2 active nav-item" {% else %} class="toc-entry toc-h2 nav-item"{% endif %}>
     {% if this.alt != "en" %}
     {% set p = '/' + this.alt + '/' + item.path %}
     {% else %}





More information about the tor-commits mailing list