Skip to content

Commit

Permalink
Do not fail if include_css is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Mar 9, 2022
1 parent e62dacc commit 1ba7791
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions share/jupyter/voila/templates/lab/page.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{%- extends 'voila/templates/base/page.html' -%}

{% block stylesheets %}
{% if theme == 'dark' %}
{{ include_css("static/index.css") }}
{{ include_css("static/theme-dark.css") }}
{% elif theme == 'light' %}
{{ include_css("static/index.css") }}
{{ include_css("static/theme-light.css") }}
{% else %}
{{ include_css("static/index.css") }}
{{ include_lab_theme(theme) }}
{% if include_css %}
{% if theme == 'dark' %}
{{ include_css("static/index.css") }}
{{ include_css("static/theme-dark.css") }}
{% elif theme == 'light' %}
{{ include_css("static/index.css") }}
{{ include_css("static/theme-light.css") }}
{% else %}
{{ include_css("static/index.css") }}
{{ include_lab_theme(theme) }}
{% endif %}
{% endif %}
{% endblock %}

0 comments on commit 1ba7791

Please sign in to comment.