feat: generate footer nav from context

pull/1/head
Luca 8 months ago
parent 0dd2c8f31a
commit 818e478353

@ -110,9 +110,13 @@
{% endblock %}
<div class="breadcrumb has-dot-separator is-flex-grow-1 is-right ml-5">
<ul>
<li><a href="{% url 'pages:view' 'map' %}">Karte</a></li>
<li><a href="{% url 'pages:view' 'faq' %}">Häufig gestellte Fragen</a></li>
<li><a href="{% url 'pages:view' 'about' %}">Über diese Seite/Impressum</a></li>
{% for item in footer_nav_items %}
<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>
</div>
</div>

@ -40,15 +40,15 @@ ALLOWED_HOSTS = list(filter(lambda s: s != "", getenv("ALLOWED_HOSTS", "").split
INSTALLED_APPS = [
"dynamic_preferences",
"shiftregister.app.apps.AppConfig",
"shiftregister.core.apps.CoreConfig",
"shiftregister.fallback.apps.FallbackConfig",
"shiftregister.importer.apps.ImporterConfig",
"shiftregister.metrics.apps.MetricsConfig",
"shiftregister.pages.apps.PagesConfig",
"shiftregister.signage.apps.SignageConfig",
"shiftregister.team.apps.TeamConfig",
"shiftregister.feedback.apps.FeedbackConfig",
"shiftregister.app",
"shiftregister.core",
"shiftregister.fallback",
"shiftregister.importer",
"shiftregister.metrics",
"shiftregister.pages",
"shiftregister.signage",
"shiftregister.team",
"shiftregister.feedback",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",

Loading…
Cancel
Save