major styling additions & refinements; offloaded navbar from base.html into its own partial, core/_partials/_navbar.html, alongside new _footer.html; 0006 dash migrations fix 0003 & 0005 theme-switcher handling and rename more fluidly to palette; added remaining realm-swatches to palette applet choices & updated test_views accordingly
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
5
src/templates/core/_partials/_footer.html
Normal file
5
src/templates/core/_partials/_footer.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<footer id="id_footer">
|
||||
<div class="footer-container">
|
||||
<small>©2026 Dis Co.</small>
|
||||
</div>
|
||||
</footer>
|
||||
39
src/templates/core/_partials/_navbar.html
Normal file
39
src/templates/core/_partials/_navbar.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{% load lyric_extras %}
|
||||
<nav class="navbar">
|
||||
<div class="container-fluid">
|
||||
<a href="/" class="navbar-brand">
|
||||
<h1>Welcome,<br>Earthman</h1>
|
||||
</a>
|
||||
{% if user.email %}
|
||||
<div class="navbar-text">
|
||||
<span class="navbar-label">
|
||||
Logged in as
|
||||
</span>
|
||||
<span class="navbar-identity">
|
||||
@{{ user|display_name }}
|
||||
</span>
|
||||
</div>
|
||||
<form method="POST" action="{% url "logout" %}">
|
||||
{% csrf_token %}
|
||||
<button id="id_logout" class="btn btn-primary btn-xl" type="submit">
|
||||
Log Out
|
||||
</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<form method="POST" action="{% url "send_login_email" %}">
|
||||
<div class="input-group">
|
||||
<label for="id_email_input" class="navbar-text me-2">
|
||||
enter email for login:
|
||||
</label>
|
||||
<input
|
||||
id="id_email_input"
|
||||
name="email"
|
||||
class="form-control"
|
||||
placeholder="your@email.here"
|
||||
>
|
||||
{% csrf_token %}
|
||||
</div>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
@@ -1,6 +1,6 @@
|
||||
{% load compress %}
|
||||
{% load static %}
|
||||
{% load lyric_extras %}
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@@ -18,37 +18,7 @@
|
||||
|
||||
<body class="{{ user_palette }} {{ page_class|default:'' }}">
|
||||
<div class="container">
|
||||
<nav class="navbar">
|
||||
<div class="container-fluid">
|
||||
<a href="/" class="navbar-brand">
|
||||
<h1>Welcome, Earthman</h1>
|
||||
</a>
|
||||
{% if user.email %}
|
||||
<span class="navbar-text">Logged in as {{ user|display_name }}</span>
|
||||
<form method="POST" action="{% url "logout" %}">
|
||||
{% csrf_token %}
|
||||
<button id="id_logout" class="btn btn-primary btn-xl" type="submit">
|
||||
Log Out
|
||||
</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<form method="POST" action="{% url "send_login_email" %}">
|
||||
<div class="input-group">
|
||||
<label for="id_email_input" class="navbar-text me-2">
|
||||
enter email for login:
|
||||
</label>
|
||||
<input
|
||||
id="id_email_input"
|
||||
name="email"
|
||||
class="form-control"
|
||||
placeholder="your@email.here"
|
||||
>
|
||||
{% csrf_token %}
|
||||
</div>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
{% include "core/_partials/_navbar.html" %}
|
||||
|
||||
{% if messages %}
|
||||
<div class="row">
|
||||
@@ -76,6 +46,8 @@
|
||||
{% endblock content %}
|
||||
|
||||
</div>
|
||||
|
||||
{% include "core/_partials/_footer.html" %}
|
||||
|
||||
{% block scripts %}
|
||||
{% endblock scripts %}
|
||||
|
||||
Reference in New Issue
Block a user