Browse Source

Melhoria no menu principal

revisaoSidenav
Sesostris Vieira 3 years ago
parent
commit
b6e13ab19b
  1. 2
      sigi/apps/home/templates/menus/menu.html

2
sigi/apps/home/templates/menus/menu.html

@ -10,7 +10,7 @@
{% for child in menu.children %} {% for child in menu.children %}
{% if child.view_name %} {% if child.view_name %}
{% url child.view_name as item_url %} {% url child.view_name as item_url %}
<div{% if item_url in request.path %} class="active"{% endif %}> <div{% if item_url in request.path and child.querystr in request.get_full_path %} class="active"{% endif %}>
<a href="{{ item_url }}{% if child.querystr %}?{{ child.querystr }}{% endif %}">{{ child.title }}</a> <a href="{{ item_url }}{% if child.querystr %}?{{ child.querystr }}{% endif %}">{{ child.title }}</a>
</div> </div>
{% else %} {% else %}

Loading…
Cancel
Save