Pull active_settings variable up into base template
This commit is contained in:
parent
0dc6b09a30
commit
5646389fbe
@ -1,6 +1,6 @@
|
||||
{% load static %}
|
||||
{% load settings_tags %}
|
||||
{% get_active_settings as settings %}
|
||||
{% get_active_settings as active_settings %}
|
||||
<!doctype html>
|
||||
<html lang="en" class="h-100">
|
||||
<head>
|
||||
@ -44,7 +44,7 @@
|
||||
<a class="nav-link fw-bold py-1 px-0 {% if 'event' in request.path %}active{% endif %}"
|
||||
href="{% url 'events' %}">Event</a>
|
||||
<a class="nav-link fw-bold py-1 px-0" target="_blank"
|
||||
href="{{ settings.spotify_playlist_url }}">Spotify</a>
|
||||
href="{{ active_settings.spotify_playlist_url }}">Spotify</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
@ -72,7 +72,7 @@
|
||||
<!-- links -->
|
||||
<div class="row justify-content-center my-5">
|
||||
<div class="col-auto display-6 m-2">
|
||||
<a href="{{ settings.spotify_playlist_url }}" target="_blank">
|
||||
<a href="{{ active_settings.spotify_playlist_url }}" target="_blank">
|
||||
<span class="badge rounded-pill text-bg-dark"><i class="bi-spotify"></i> Playlist</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -32,7 +32,6 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% get_active_settings as active_settings %}
|
||||
<div class="mx-5">
|
||||
<main class="d-flex flex-column h-100 mx-auto text-white" style="max-width: 52rem">
|
||||
<div class="row w-100 mt-5 mb-4 mx-auto bg-logo"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user