aded favicon and fixed ui issues

This commit is contained in:
RNL
2026-02-21 14:59:08 +11:00
parent 27844b5b44
commit c395d06db4
11 changed files with 1718 additions and 11 deletions

View File

@@ -91,6 +91,7 @@ USE_TZ = True
# Static files
STATIC_URL = "static/"
STATIC_ROOT = BASE_DIR / "staticfiles"
STATICFILES_DIRS = [BASE_DIR / "standalone" / "static"]
STATICFILES_STORAGE = "whitenoise.storage.CompressedStaticFilesStorage"
# Default primary key field type
@@ -103,7 +104,7 @@ LOGOUT_REDIRECT_URL = "/accounts/login/"
# Bambu Run settings
BAMBU_RUN_TIMEZONE = os.environ.get("TIMEZONE", "UTC")
BAMBU_RUN_BASE_TEMPLATE = "bambu_run/base.html"
BAMBU_RUN_BASE_TEMPLATE = "standalone_base.html"
# Printer connection — read from environment
PRINTER_IP = os.environ.get("PRINTER_IP", "")

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

View File

@@ -0,0 +1,21 @@
{% extends "bambu_run/base.html" %}
{% load static %}
{% block extra_head %}
<link rel="icon" type="image/png" href="{% static 'favicon-32.png' %}">
{% endblock %}
{% block sidebar_brand_icon %}
<img src="{% static 'favicon-64.png' %}" alt="Bambu Run" width="32" height="32" style="flex-shrink:0;">
{% endblock %}
{% block logout_nav %}
{% if user.is_authenticated %}
<li class="nav-item">
<form method="post" action="{% url 'logout' %}" style="margin:0;">
{% csrf_token %}
<button type="submit" class="nav-link">Logout</button>
</form>
</li>
{% endif %}
{% endblock %}