0
0
mirror of https://github.com/django/django.git synced 2024-11-24 20:07:01 +01:00

support for section without link

This commit is contained in:
“Paulo 2024-03-11 16:51:46 -03:00
parent 3592e9fcb1
commit d74c599da6

View File

@ -5,7 +5,11 @@
<div class="app-{{ app.app_label }} module{% if app.app_url in request.path|urlencode %} current-app{% endif %}">
<table>
<caption>
<a href="{{ app.app_url }}" class="section" title="{% blocktranslate with name=app.name %}Models in the {{ name }} application{% endblocktranslate %}">{{ app.name }}</a>
{% if app.app_url %}
<a href="{{ app.app_url }}" class="section" title="{% blocktranslate with name=app.name %}Models in the {{ name }} application{% endblocktranslate %}">{{ app.name }}</a>
{% else %}
{{ app.name }}
{% endif %}
</caption>
{% for model in app.models %}
{% with model_name=model.object_name|lower %}