<commit_before>{##
 # Standard HTML page template
 #
 # Dont't use, use "_page-<nav|no_nav|popup>.twig" instead!
 #
 # Blocks: page_nav:      Navigation path, like: "Dashboard", "Settings/Configuration", "Content/*", ...
 #         page_main:     content
 #         page_title:    used as html title
 #         page_subtitle: used as html title (optional)
 #         page_script:   script added after the body tag (script tags needed!)
 #}
{%- spaceless %}

{% set page_locale_long = app.locale %}
{% set page_locale_short = page_locale_long|slice(0, 2) %}

{% if block('page_subtitle') is empty %}
    {% set page_title = block('page_title') %}
{% else %}
    {% set page_title = block('page_title') ~ ' » ' ~ block('page_subtitle') %}
{% endif %}

{# bootstrap.js: Bolt's compiled and uglified Bootstrap javascript. Generate with 'grunt uglify:bootstrap' #}
{% set page_scripts = [
    'view/js/jquery-1.11.1.min.js',
    'view/js/underscore-min.js',
    'view/js/backbone-min.js',
    'view/js/jquery-ui-1.10.3.custom.min.js',
    'view/js/jquery.plugins.js',
    'view/js/bootstrap.js',
    'view/js/jquery.magnific-popup.min.js',
    'view/lib/select2/select2.min.js',
    'view/lib/ckeditor/ckeditor.js',
    'view/lib/upload/jquery.iframe-transport.js',
    'view/lib/upload/jquery.fileupload.js',
    'view/js/moment.min.js',
    'view/js/bootbox.min.js',
    'view/js/modernizr.custom.2.8.3.js',
] %}

{# Add locale include for datepicker #}
{% set dppath = 'view/js/i18n/datepicker-' %}
{% if file_exists(paths.apppath ~ '/' ~ dppath ~ page_locale_long|replace({'_': '-'}) ~ '.js') %}
    {% set page_scripts = page_scripts|merge([dppath ~ page_locale_long|replace({'_': '-'}) ~ '.js']) %}
{% elseif page_locale_short != 'en' and file_exists(paths.apppath ~ '/' ~ dppath ~ page_locale_short ~ '.js') %}
    {% set page_scripts = page_scripts|merge([dppath ~ page_locale_short ~ '.js']) %}
{% endif %}

{% endspaceless -%}

<!DOCTYPE html>
<html lang="{{ page_locale_short }}">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">

    <title>{{ page_title|striptags|trim }} – {{ app.config.get('general/branding/name') }}</title>

    <link rel="stylesheet" href="{{ paths.app }}view/css/smoothness/jquery-ui-1.10.3.custom.min.css">
    <link rel="stylesheet" href="{{ paths.app }}view/css/magnific-popup.css">
    <link rel="stylesheet" href="{{ paths.app }}view/lib/select2/select2.css">
    <link rel="stylesheet" href="{{ paths.app }}view/lib/upload/jquery.fileupload-ui.css">

    <!--[if lt IE 9]>
        <link rel="stylesheet" href="{{ paths.app }}view/css/bolt-old-ie.css" media="screen, projection">
    <![endif]-->

    <!--[if gte IE 9]><!-->
        <link rel="stylesheet" href="{{ paths.app }}view/css/bolt.css" media="screen, projection">
    <!--<![endif]-->

    {% for script in page_scripts -%}
        <script src="{{ paths.app ~ script }}"></script>
    {% endfor %}

    <link rel="shortcut icon" href="{% if app.config.get('general/branding/favicon') %}{{ app.config.get('general/branding/favicon') }}{% else %}{{ paths.app }}view/img/favicon-bolt.ico{% endif %}">
    <link rel="apple-touch-icon" sizes="57x57" href="{% if app.config.get('general/branding/apple-touch-icon') %}{{ app.config.get('general/branding/apple-touch-icon') }}{% else %}{{ paths.app }}view/img/apple-touch-icon.png{% endif %}">
    <link rel="apple-touch-icon" sizes="72x72" href="{% if app.config.get('general/branding/apple-touch-icon-72x72') %}{{ app.config.get('general/branding/apple-touch-icon-72x72') }}{% else %}{{ paths.app }}view/img/apple-touch-icon-72x72.png{% endif %}">
    <link rel="apple-touch-icon" sizes="114x114" href="{% if app.config.get('general/branding/apple-touch-icon-114x114') %}{{ app.config.get('general/branding/apple-touch-icon-114x114') }}{% else %}{{ paths.app }}view/img/apple-touch-icon-114x114.png{% endif %}">
    <link rel="apple-touch-icon" sizes="144x144" href="{% if app.config.get('general/branding/apple-touch-icon-144x144') %}{{ app.config.get('general/branding/apple-touch-icon-144x144') }}{% else %}{{ paths.app }}view/img/apple-touch-icon-144x144.png{% endif %}">

    {# HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -#}
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <script>
        moment.lang('{{ page_locale_short }}');
    </script>
</head>

<body{% if page_bodyclass %} class="{{ page_bodyclass }}"{% endif %}>
    {% block page_plain %}{% endblock page_plain %}

{% set bconfig = {
    locale: {
        short: page_locale_short,
        long: page_locale_long,
    },<commit_msg>Rename page_scripts to page_scripts_inc to distinguish from page_script<commit_after>{##
 # Standard HTML page template
 #
 # Dont't use, use "_page-<nav|no_nav|popup>.twig" instead!
 #
 # Blocks: page_nav:      Navigation path, like: "Dashboard", "Settings/Configuration", "Content/*", ...
 #         page_main:     content
 #         page_title:    used as html title
 #         page_subtitle: used as html title (optional)
 #         page_script:   script added after the body tag (script tags needed!)
 #}
{%- spaceless %}

{% set page_locale_long = app.locale %}
{% set page_locale_short = page_locale_long|slice(0, 2) %}

{% if block('page_subtitle') is empty %}
    {% set page_title = block('page_title') %}
{% else %}
    {% set page_title = block('page_title') ~ ' » ' ~ block('page_subtitle') %}
{% endif %}

{# bootstrap.js: Bolt's compiled and uglified Bootstrap javascript. Generate with 'grunt uglify:bootstrap' #}
{% set page_scripts_inc = [
    'view/js/jquery-1.11.1.min.js',
    'view/js/underscore-min.js',
    'view/js/backbone-min.js',
    'view/js/jquery-ui-1.10.3.custom.min.js',
    'view/js/jquery.plugins.js',
    'view/js/bootstrap.js',
    'view/js/jquery.magnific-popup.min.js',
    'view/lib/select2/select2.min.js',
    'view/lib/ckeditor/ckeditor.js',
    'view/lib/upload/jquery.iframe-transport.js',
    'view/lib/upload/jquery.fileupload.js',
    'view/js/moment.min.js',
    'view/js/bootbox.min.js',
    'view/js/modernizr.custom.2.8.3.js',
] %}

{# Add locale include for datepicker #}
{% set dppath = 'view/js/i18n/datepicker-' %}
{% if file_exists(paths.apppath ~ '/' ~ dppath ~ page_locale_long|replace({'_': '-'}) ~ '.js') %}
    {% set page_scripts_inc = page_scripts_inc|merge([dppath ~ page_locale_long|replace({'_': '-'}) ~ '.js']) %}
{% elseif page_locale_short != 'en' and file_exists(paths.apppath ~ '/' ~ dppath ~ page_locale_short ~ '.js') %}
    {% set page_scripts_inc = page_scripts_inc|merge([dppath ~ page_locale_short ~ '.js']) %}
{% endif %}

{% endspaceless -%}

<!DOCTYPE html>
<html lang="{{ page_locale_short }}">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">

    <title>{{ page_title|striptags|trim }} – {{ app.config.get('general/branding/name') }}</title>

    <link rel="stylesheet" href="{{ paths.app }}view/css/smoothness/jquery-ui-1.10.3.custom.min.css">
    <link rel="stylesheet" href="{{ paths.app }}view/css/magnific-popup.css">
    <link rel="stylesheet" href="{{ paths.app }}view/lib/select2/select2.css">
    <link rel="stylesheet" href="{{ paths.app }}view/lib/upload/jquery.fileupload-ui.css">

    <!--[if lt IE 9]>
        <link rel="stylesheet" href="{{ paths.app }}view/css/bolt-old-ie.css" media="screen, projection">
    <![endif]-->

    <!--[if gte IE 9]><!-->
        <link rel="stylesheet" href="{{ paths.app }}view/css/bolt.css" media="screen, projection">
    <!--<![endif]-->

    {% for script in page_scripts_inc -%}
        <script src="{{ paths.app ~ script }}"></script>
    {% endfor %}

    <link rel="shortcut icon" href="{% if app.config.get('general/branding/favicon') %}{{ app.config.get('general/branding/favicon') }}{% else %}{{ paths.app }}view/img/favicon-bolt.ico{% endif %}">
    <link rel="apple-touch-icon" sizes="57x57" href="{% if app.config.get('general/branding/apple-touch-icon') %}{{ app.config.get('general/branding/apple-touch-icon') }}{% else %}{{ paths.app }}view/img/apple-touch-icon.png{% endif %}">
    <link rel="apple-touch-icon" sizes="72x72" href="{% if app.config.get('general/branding/apple-touch-icon-72x72') %}{{ app.config.get('general/branding/apple-touch-icon-72x72') }}{% else %}{{ paths.app }}view/img/apple-touch-icon-72x72.png{% endif %}">
    <link rel="apple-touch-icon" sizes="114x114" href="{% if app.config.get('general/branding/apple-touch-icon-114x114') %}{{ app.config.get('general/branding/apple-touch-icon-114x114') }}{% else %}{{ paths.app }}view/img/apple-touch-icon-114x114.png{% endif %}">
    <link rel="apple-touch-icon" sizes="144x144" href="{% if app.config.get('general/branding/apple-touch-icon-144x144') %}{{ app.config.get('general/branding/apple-touch-icon-144x144') }}{% else %}{{ paths.app }}view/img/apple-touch-icon-144x144.png{% endif %}">

    {# HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -#}
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <script>
        moment.lang('{{ page_locale_short }}');
    </script>
</head>

<body{% if page_bodyclass %} class="{{ page_bodyclass }}"{% endif %}>
    {% block page_plain %}{% endblock page_plain %}

{% set bconfig = {
    locale: {
        short: page_locale_short,
        long: page_locale_long,
    },
{'fraction_non_alphanumeric': 0.20824120603015076, 'fraction_numerical': 0.02271356783919598, 'mean_word_length': 3.7749520153550864, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 77, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4097094', 'n_tokens_mistral': 3815, 'n_tokens_neox': 3502, 'n_words': 605}