| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <!DOCTYPE html>
- <html>
- {% block html_head %}
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>{% block html_title %}{{ customizeService.generateCustomTitle(page || path) }}{% endblock %}</title>
- <meta name="description" content="">
- <meta name="author" content="">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <meta name="apple-mobile-web-app-title" content="{{ appService.getAppTitle() }}">
- {{ getConfig('crowi', 'customize:header') | default('') }}
- {% include '../widget/headers/favicon.html' %}
- {% include '../widget/headers/ie11-polyfills.html' %}
- {{ cdnScriptTagsByGroup('basis') }}
- {% if local_config.env.MATHJAX %}
- {% include '../widget/headers/mathjax.html' %}
- {% endif %}
- {% include '../widget/headers/scripts-for-dev.html' %}
- <script src="{{ webpack_asset('js/boot.js') }}"></script>
- <script src="{{ webpack_asset('js/vendors.js') }}" defer></script>
- <script src="{{ webpack_asset('js/commons.js') }}" defer></script>
- {% if getConfig('crowi', 'plugin:isEnabledPlugins') %}
- <script src="{{ webpack_asset('js/plugin.js') }}" defer></script>
- {% endif %}
- {% block html_head_loading_legacy %}
- <script src="{{ webpack_asset('js/legacy.js') }}" defer></script>
- {% endblock %}
- {% block html_head_loading_app %}
- <script src="{{ webpack_asset('js/app.js') }}" defer></script>
- {% endblock %}
- <!-- styles -->
- {% include '../widget/headers/styles-for-app.html' %}
- {% if 'kibela' === getConfig('crowi', 'customize:layout') %}
- {% include '../widget/headers/styles-theme-kibela.html' %}
- {% else %}
- {% block theme_css_block %}
- {% set themeName = getConfig('crowi', 'customize:theme') %}
- {% include '../widget/headers/styles-theme.html' with {themeName: themeName} %}
- {% endblock %}
- {% endif %}
- {{ cdnStyleTagsByGroup('basis') }}
- {{ cdnHighlightJsStyleTag(getConfig('crowi', 'customize:highlightJsStyle')) }}
- {% block html_additional_headers %}{% endblock %}
- <style>
- {{ customizeService.getCustomCss() }}
- </style>
- </head>
- {% endblock %}
- {% block html_body %}
- <body
- class="{% block html_base_css %}{% endblock %}
- {% if !getConfig('crowi', 'customize:layout') || 'crowi' === getConfig('crowi', 'customize:layout') %}crowi{% elseif !getConfig('crowi', 'customize:layout') || 'kibela' === getConfig('crowi', 'customize:layout') %}kibela{% else %}growi{% endif %}"
- data-is-admin="{{ user.admin }}"
- data-plugin-enabled="{{ getConfig('crowi', 'plugin:isEnabledPlugins') }}"
- {% block html_base_attr %}{% endblock %}
- data-csrftoken="{{ csrf() }}"
- >
- <div id="wrapper">
- {% block layout_head_nav %}
- <div id="grw-navbar"></div>
- {% endblock %} {# layout_head_nav #}
- {% block head_warn_breaking_changes %}{% include '../widget/alert_breaking_changes.html' %}{% endblock %}
- <div id="page-wrapper" class="page-wrapper d-flex">
- {# Sidebar #}
- <div id="grw-sidebar-wrapper"></div>
- <div class="flex-fill mw-0">
- {% block head_warn_alert_siteurl_undefined %}{% include '../widget/alert_siteurl_undefined.html' %}{% endblock %}
- {# Search #}
- {% if isSearchServiceConfigured() %}
- <div id="grw-search-top" class="search-top" role="search"></div>
- {% endif %}
- {% block layout_main %}{% endblock %}
- </div>
- </div>
- </div><!-- /#wrapper -->
- {% if user %}
- <div class="grw-fixed-controls-container d-md-none d-edit-none animated fadeInUp faster">
- <div class="grw-fixed-controls-button-container rounded-circle">
- <div id='create-page-button-icon'></div>
- </div>
- </div>
- {% endif %}
- <!-- /#staff-credit -->
- <div id="staff-credit"></div>
- <div id="page-create-modal"></div>
- {% include '../modal/shortcuts.html' %}
- {% block body_end %}
- {% endblock %}
- </body>
- {% endblock %}
- <script type="application/json" id="growi-context-hydrate">
- {{ local_config|json|safe|preventXss }}
- </script>
- {% if user != null %}
- <script type="application/json" id="growi-current-user">
- {{ user|json|safe|preventXss }}
- </script>
- {% endif %}
- {% block custom_script %}
- <script>
- {{ customizeService.getCustomScript() }}
- </script>
- {% endblock %}
- </html>
|