mirror of
https://github.com/django/django.git
synced 2025-03-12 10:22:37 +00:00
support for section without link
This commit is contained in:
parent
3592e9fcb1
commit
d74c599da6
@ -5,7 +5,11 @@
|
|||||||
<div class="app-{{ app.app_label }} module{% if app.app_url in request.path|urlencode %} current-app{% endif %}">
|
<div class="app-{{ app.app_label }} module{% if app.app_url in request.path|urlencode %} current-app{% endif %}">
|
||||||
<table>
|
<table>
|
||||||
<caption>
|
<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>
|
</caption>
|
||||||
{% for model in app.models %}
|
{% for model in app.models %}
|
||||||
{% with model_name=model.object_name|lower %}
|
{% with model_name=model.object_name|lower %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user