Skip to content

Commit

Permalink
Manually create top menu links
Browse files Browse the repository at this point in the history
  • Loading branch information
gythaogg committed Jun 4, 2024
1 parent a0c0c71 commit 938c0ea
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions apis_ontology/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@
<div class="dropdown-menu" aria-labelledby="navbarDropdown">

{% block entities-menu-items %}
{% entities_content_types as entities %}
{% for content_type in entities %}
<a class="dropdown-item" href="{% url 'apis:generic:list' content_type %}">
{{ content_type|model_meta:"verbose_name_plural" }}</a>
{% endfor %}
<a class="dropdown-item" href="apis_ontology.person">
Persons </a>
<a class="dropdown-item" href="apis_ontology.work">
Works </a>
<a class="dropdown-item" href="apis_ontology.instance">
Instances </a>
<a class="dropdown-item" href="apis_ontology.place">
Places </a>
{% endblock entities-menu-items %}

</div>
Expand Down

0 comments on commit 938c0ea

Please sign in to comment.