| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <!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(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/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() }}"
- data-current-username="{% if user %}{{ user.username }}{% endif %}"
- data-userlang="{% if user %}{{ user.lang }}{% endif %}"
- >
- <div id="wrapper" class="d-flex">
- {# Sidebar #}
- <nav>
- <div id="grw-sidebar" class="grw-sidebar"></div>
- </nav>
- <div class="flex-grow-1">
- {% block layout_head_nav %}
- <nav class="navbar grw-navbar navbar-expand-sm navbar-dark mb-0 p-0">
- {# Navbar Left #}
- <ul class="navbar-nav mr-auto pl-4">
- <li>
- {% if isSearchServiceConfigured() %}
- <div class="navbar-form navbar-left search-top" role="search" id="search-top"></div>
- {% endif %}
- </li>
- </ul>
- {# Navbar Right #}
- <ul class="navbar-nav">
- {% if user and user.admin %}
- <li class="nav-item">
- <a class="nav-link" href="/admin">
- <i class="icon-settings mr-2"></i>
- <span class="d-none d-md-inline-block">{{ t('Admin') }}</span>
- </a>
- </li>
- {% endif %}
- {% if user %}
- <li class="nav-item">
- <a class="nav-link" href="#" data-target="#create-page" data-toggle="modal">
- <i class="icon-pencil mr-2"></i>
- <span class="d-none d-md-inline-block">{{ t('New') }}</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="https://docs.growi.org/" target="_blank">
- <i class="icon-question mr-2"></i><span class="d-none d-md-inline-block mr-2">{{ t('Help') }}</span><span class="text-muted small"><i class="icon-share-alt"></i></span>
- </a>
- </li>
- <li id="personal-dropdown" class="nav-item dropdown"></li>
- {% else %}
- <li id="login-user" class="nav-item"><a class="nav-link" href="/login">Login</a></li>
- {% endif %}
- {% if getConfig('crowi', 'app:confidential') %}
- <li class="nav-item confidential text-light">{{ getConfig('crowi', 'app:confidential') }}</li>
- {% endif %}
- </ul>
- </nav>
- {% include '../modal/create_page.html' %}
- {% endblock %} {# layout_head_nav #}
- {% block head_warn_alert_siteurl_undefined %}{% include '../widget/alert_siteurl_undefined.html' %}{% endblock %}
- {% block head_warn_breaking_changes %}{% include '../widget/alert_breaking_changes.html' %}{% endblock %}
- <div id="page-wrapper">
- {% block layout_main %}
- {% endblock %} {# layout_main #}
- </div>
- </div>
- </div><!-- /#wrapper -->
- <!-- /#staff-credit -->
- <div id="staff-credit"></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>
|