{# Thanks to http://stackoverflow.com/a/7027035/1991086 #} {% if config and config.NAME %} {% set app_name=config.NAME %} {% else %} {% set app_name="Serendip" %} {% endif %} {% if not ui_size %} {% set ui_size="small" %} {% endif %} {% if not ui_color %} {% set ui_color="" %} {% endif %} {% set body_class="" %} {% if config.DEBUG == True %} {% set body_class = body_class + " " + "debug" %} {% endif %} {% if config.TESTING == True %} {% set body_class = body_class + " " + "testing" %} {% endif %} {% if ui_color and ui_color !="" %} {% set body_class = body_class + " " + "body-" + ui_color %} {% endif %} {% set navbar_class="navbar" %} {% set navbar_size_class=navbar_class %} {% set navbar_color_class=navbar_class %} {% set navbar_size_class="" %} {% set navbar_color_class="" %} {% if ui_size and ui_size !="" %} {% set navbar_size_class="navbar navbar-" + ui_size %} {% set navbar_class = navbar_class + " " + navbar_size_class %} {% endif %} {% if ui_color and ui_color !="" %} {% set navbar_color_class="navbar navbar-" + ui_color %} {% set navbar_class = navbar_class + " " + navbar_color_class %} {% endif %} {% set btn_class="btn" %} {% set btn_size_class=btn_class %} {% set btn_color_class=btn_class %} {% if ui_size and ui_size !="" %} {% set btn_size_class="btn btn-" + ui_size %} {% set btn_class = btn_class + " " + btn_size_class %} {% endif %} {% if ui_color and ui_color !="" %} {% set btn_color_class="btn btn-" + ui_color %} {% set btn_class = btn_class + " " + btn_color_class %} {% endif %} {{ app_name }}{% if title %} — {{ title }}{% endif %} {% if css %} {% endif %} {% block head %}{% endblock %} {% block floating_divs %} {% endblock %} {% block body %}
{% if alert_info and alert_info != '' %}
{{ alert_info }}
{% endif %}
{% block content %} Content goes here. {% endblock %}
{% endblock %} {% if script %} {% endif %} {% block scripts %}{% endblock %}