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

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



commit 7f6cc269e39651f4615ecf399b34937d5ad25c19
Author: Nicolei Ocana <nicoleiocana@xxxxxxxxx>
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 %}



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