2
0
Fork 0

feat: generate footer nav from context

This commit is contained in:
Luca 2024-05-04 00:05:00 +02:00
parent 0dd2c8f31a
commit 818e478353
2 changed files with 16 additions and 12 deletions

View File

@ -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>

View File

@ -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",