minor fixes to theming engine

This commit is contained in:
rra 2024-04-16 18:29:27 +02:00
parent be4dbfb107
commit 7e9f447c70
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,8 @@
{% extends 'base.html' %}
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
{% extends 'themes/' + theme() + '/base.html' %}
{% else %}
{% extends "base.html" %}
{% endif %} %}
{% from 'bootstrap/form.html' import render_form %}
{% block app_content %}

View file

@ -270,7 +270,7 @@
<script type="text/javascript" src="{{ url_for('static', filename='js/markdown/downarea.js', changed=getmtime('js/markdown/downarea.js')) }}"></script>
{% endif %}
{% if theme() and file_exists('app/templates/themes/' + theme() + '/scripts.js') %}
<script src="{{ url_for('static', filename='themes/' + theme() + '/scripts.js') }}" />
<script src="{{ url_for('static', filename='themes/' + theme() + '/scripts.js') }}"></script>
{% endif %}
{% block end_scripts %}