Skip to content

Commit 133452f

Browse files
committed
fix rendering of left menu in rest api view
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 60c4931 commit 133452f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

dje/templates/navbar/navbar_header_left_menu.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{% load i18n %}
2+
{# Keep the URLs here as needed for includes of this template #}
3+
{% url 'product_portfolio:product_list' as product_list_url %}
4+
{% url 'component_catalog:package_list' as package_list_url %}
5+
{% url 'license_library:license_list' as license_list_url %}
6+
{% url 'product_portfolio:compliance_dashboard' as compliance_dashboard_url %}
7+
{% url 'workflow:request_list' as request_list_url %}
8+
29
{% if not user.is_anonymous %}
310
<li class="nav-item{% if product_list_url in request.path and 'compliance' not in request.path %} active{% endif %}">
411
<a class="nav-link" href="{{ product_list_url }}">

dje/templates/rest_framework/api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
{% block branding %}
2323
<span class="navbar-brand">{{ SITE_TITLE }} REST API</span>
24-
<ul class="nav navbar-nav">
25-
{% include 'includes/navbar_header_left_menu.html' %}
24+
<ul class="nav navbar-nav hidden-xs hidden-sm">
25+
{% include 'navbar/navbar_header_left_menu.html' %}
2626
</ul>
2727
{% endblock %}
2828

0 commit comments

Comments
 (0)