feat: generate footer nav from context
This commit is contained in:
parent
0dd2c8f31a
commit
818e478353
|
@ -110,9 +110,13 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div class="breadcrumb has-dot-separator is-flex-grow-1 is-right ml-5">
|
<div class="breadcrumb has-dot-separator is-flex-grow-1 is-right ml-5">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{% url 'pages:view' 'map' %}">Karte</a></li>
|
{% for item in footer_nav_items %}
|
||||||
<li><a href="{% url 'pages:view' 'faq' %}">Häufig gestellte Fragen</a></li>
|
<li>
|
||||||
<li><a href="{% url 'pages:view' 'about' %}">Über diese Seite/Impressum</a></li>
|
<{% if item.link %}a{% else %}p{% endif %}{% if item.class %} class="{{ item.class }}"{% endif %}{% if item.link %} href="{{ item.link }}"{% endif %}>
|
||||||
|
{{ item.text }}
|
||||||
|
</{% if item.link %}a{% else %}p{% endif %}>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -40,15 +40,15 @@ ALLOWED_HOSTS = list(filter(lambda s: s != "", getenv("ALLOWED_HOSTS", "").split
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"dynamic_preferences",
|
"dynamic_preferences",
|
||||||
"shiftregister.app.apps.AppConfig",
|
"shiftregister.app",
|
||||||
"shiftregister.core.apps.CoreConfig",
|
"shiftregister.core",
|
||||||
"shiftregister.fallback.apps.FallbackConfig",
|
"shiftregister.fallback",
|
||||||
"shiftregister.importer.apps.ImporterConfig",
|
"shiftregister.importer",
|
||||||
"shiftregister.metrics.apps.MetricsConfig",
|
"shiftregister.metrics",
|
||||||
"shiftregister.pages.apps.PagesConfig",
|
"shiftregister.pages",
|
||||||
"shiftregister.signage.apps.SignageConfig",
|
"shiftregister.signage",
|
||||||
"shiftregister.team.apps.TeamConfig",
|
"shiftregister.team",
|
||||||
"shiftregister.feedback.apps.FeedbackConfig",
|
"shiftregister.feedback",
|
||||||
"django.contrib.admin",
|
"django.contrib.admin",
|
||||||
"django.contrib.auth",
|
"django.contrib.auth",
|
||||||
"django.contrib.contenttypes",
|
"django.contrib.contenttypes",
|
||||||
|
|
Loading…
Reference in New Issue