- Merge with closedverse-video-support
- user_tools moved to forms.py
- community_tools moved to forms.py
This commit is contained in:
some weird guy
2023-08-19 17:17:00 -07:00
parent 49477bf178
commit 1b33a2aad1
50 changed files with 660 additions and 439 deletions
+6 -1
View File
@@ -5,8 +5,13 @@ except ImportError:
from closedverse_main import apps
brand_name = apps.ClosedverseMainConfig.verbose_name
# for brand logo
from closedverse.settings import STATIC_URL
# variable for this and name are here for imports
brand_logo = STATIC_URL + 'img/menu-logo.svg'
# the name of the function is merely what's imported into settings.py
def brand_name_universal(request):
# this returns what's actually newly available to the template
# so the name of the key actually dictates what you put in the tmpl
return {"brand_name": brand_name}
return {"brand_name": brand_name, "brand_logo": brand_logo}