Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved list issue #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions mayan/apps/appearance/templates/appearance/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@
</div>

{% if facet_menus_link_results %}

<div id="sidebar">
<div class="list-group">
<ol>
{% for menu_link_result in facet_menus_link_results %}
{% if facet_menus_link_results|length > 1 %}

{% if menu_link_result.menu.name not in 'facet,list facet'|split:"," %}

<li class="dropdown-header">{{ menu_link_result.menu.label }}</li>
{% else %}
{% ifchanged menu_link_result.link_groups.0.object %}
Expand All @@ -72,9 +76,13 @@
{% endifchanged %}
{% endif %}
{% else %}
{% if menu_link_result.menu.name not in 'facet,list facet'|split:"," %}
<li class="dropdown-header">{{ menu_link_result.menu.label }}</li>
{% if menu_link_result.menu.name not in 'facet,list facet'|split:"," %}
<li class="dropdown-header">{{ menu_link_result.menu.label }}</li>


{% endif %}

</ol>
{% endif %}
{% for link_group in menu_link_result.link_groups %}
{% with link_group.links as object_navigation_links %}
Expand All @@ -88,6 +96,7 @@
{% endwith %}
{% endfor %}
{% endfor %}

</div>
</div>
{% endif %}
Expand Down