-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not fail if include_css is not defined
- Loading branch information
1 parent
e62dacc
commit 1ba7791
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |