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