From e3ec92dbf5d398738c3bbc9c63090314eb328fc2 Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 28 Nov 2023 11:44:48 +0300 Subject: [PATCH] 0.0.16 logo from admin --- GeneralApp/funcs.py | 6 +++++- templates/blocks/static/header.html | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/GeneralApp/funcs.py b/GeneralApp/funcs.py index da305d4..b3b9bd0 100644 --- a/GeneralApp/funcs.py +++ b/GeneralApp/funcs.py @@ -1,4 +1,6 @@ from django.http import HttpResponse, Http404, FileResponse +from admin_interface.templatetags.admin_interface_tags import get_admin_interface_theme + def get_inter_Dict(user): @@ -6,8 +8,10 @@ def get_inter_Dict(user): from ServicesApp.funcs import get_sections sections = get_sections() + theme = get_admin_interface_theme() Dict.update({ - 'sections': sections + 'sections': sections, + 'logo': theme.logo.url }) # from SubscribesApp.funcs import get_cur_user_subscribe # user_subscribe = get_cur_user_subscribe(user) diff --git a/templates/blocks/static/header.html b/templates/blocks/static/header.html index ad39e6d..1d9021a 100644 --- a/templates/blocks/static/header.html +++ b/templates/blocks/static/header.html @@ -1,8 +1,11 @@ {% load static %} +{% load admin_interface_tags %} +
- +{# #} +