From b305876feba3c139df6cc6a6bfbc4c284ced2a78 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Sun, 16 Nov 2025 16:03:11 +0300 Subject: [PATCH] Features: 1) Add "eVibes" version display in admin dashboard footer; Fixes: 1) Remove dashboard title exclusion logic; 2) Refactor quick links to include title, link, and optional icon; Extra: 1) Add separator and version text component; 2) Update template to render version info; 3) Minor formatting cleanup. --- engine/core/templates/admin/index.html | 13 ++++++++++++- engine/core/views.py | 10 ++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/engine/core/templates/admin/index.html b/engine/core/templates/admin/index.html index 51f9dafc..9782937a 100644 --- a/engine/core/templates/admin/index.html +++ b/engine/core/templates/admin/index.html @@ -17,6 +17,7 @@ {% component "unfold/components/container.html" %} {% component "unfold/components/title.html" %} {% trans "Dashboard" %} +
{% endcomponent %}
@@ -147,5 +148,15 @@ {% endcomponent %}
+ + {% component "unfold/components/separator.html" %} + {% endcomponent %} + +
+ {% component "unfold/components/text.html" with class="text-center text-xs text-gray-500 dark:text-gray-400" %} + "eVibes" {{ evibes_version }} ยท "Wiseless Team" + {% endcomponent %} +
+ {% endcomponent %} -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/engine/core/views.py b/engine/core/views.py index 1ab9528f..5e467e2a 100644 --- a/engine/core/views.py +++ b/engine/core/views.py @@ -430,10 +430,11 @@ def dashboard_callback(request, context): link = item.get("link") if not title or not link: continue - if str(title).lower() == "dashboard": - continue - url = str(link) - quick_links.append({"name": str(title), "href": url}) + quick_links.append({ + "title": str(title), + "link": str(link), + **({"icon": item.get("icon")} if item.get("icon") else {}), + }) most_wished: dict[str, str | int | float | None] | None = None with suppress(Exception): @@ -481,6 +482,7 @@ def dashboard_callback(request, context): "revenue_net_30": revenue_net_30, "returns_30": returns_30, "processed_orders_30": processed_orders_30, + "evibes_version": settings.EVIBES_VERSION, "quick_links": quick_links, "most_wished_product": most_wished, "most_popular_product": most_popular,