Skip to content

Commit

Permalink
refactor: replace the relations_list with hardcoded links
Browse files Browse the repository at this point in the history
The relations list was sourced from a context processor. This is
overengineered for a list of two items. We therefore replace the items
with a hardcoded list, which allows us to drop the context processor in
the future.
  • Loading branch information
b1rger committed Oct 11, 2023
1 parent c963cd8 commit 51a0e5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apis_core/apis_metainfo/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@
<div class="dropdown-menu" aria-labelledby="navbarDropdown">

{% block relations-menu-items %}
{% for ent in relations_list %}
<a class="dropdown-item"
href="{% url 'apis:apis_relations:generic_relations_list' ent %}">{{ ent|title }}</a>
{% endfor %}
<a class="dropdown-item"
href="{% url 'apis:apis_relations:generic_relations_list' "property" %}">Properties</a>
<a class="dropdown-item"
href="{% url 'apis:apis_relations:generic_relations_list' "triple" %}">Triples</a>
{% endblock relations-menu-items %}

</div>
Expand Down

0 comments on commit 51a0e5d

Please sign in to comment.