context processors: return mini-template if there's no skeleton url (#73796)

This commit is contained in:
Frédéric Péters 2023-01-24 16:21:40 +01:00 committed by Gitea
parent a5acd7e2b2
commit 65ff0ad9a6
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ class RemoteTemplate:
# deployed.
return Template('<html><body>{% block content %}{% endblock %}</body></html>')
self.theme_skeleton_url = context['portal_url'] + '__skeleton__/'
elif not settings.THEME_SKELETON_URL:
return Template('<html><body>{% block content %}{% endblock %}</body></html>')
else:
self.theme_skeleton_url = settings.THEME_SKELETON_URL
if item is None: