|
|
@@ -1,9 +1,18 @@
|
|
|
-{% extends '../layout/admin.html' %} {% block html_title %}{{ customizeService.generateCustomTitle(t('Customize')) }} {% endblock %} {% block theme_css_block %}
|
|
|
-{% set themeName = getConfig('crowi', 'customize:theme') %} {% if env === 'development' %}
|
|
|
+{% extends '../layout/admin.html' %}
|
|
|
+{% block html_title %}{{ customizeService.generateCustomTitle(t('Customize')) }}{% endblock %}
|
|
|
+
|
|
|
+{% block theme_css_block %}
|
|
|
+{% set themeName = getConfig('crowi', 'customize:theme') %}
|
|
|
+
|
|
|
+{% if env === 'development' %}
|
|
|
<script src="{{ webpack_asset('styles/theme-' + themeName + '.js') }}"></script>
|
|
|
{% else %}
|
|
|
<link rel="stylesheet" id="jssDefault" {# append id for theme selector #} href="{{ webpack_asset('styles/theme-' + themeName + '.css') }}" />
|
|
|
-{% endif %} {% endblock %} {% block html_additional_headers %} {% parent %}
|
|
|
+{% endif %}
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block html_additional_headers %}
|
|
|
+{% parent %}
|
|
|
<!-- CodeMirror -->
|
|
|
{{ cdnStyleTag('jquery-ui') }}
|
|
|
<style>
|
|
|
@@ -11,19 +20,26 @@
|
|
|
border: 1px solid #eee;
|
|
|
}
|
|
|
</style>
|
|
|
-{% endblock %} {% block content_header %}
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block content_header %}
|
|
|
<div class="header-wrap">
|
|
|
<header id="page-header">
|
|
|
<h1 id="admin-title" class="title">{{ t('Customize') }}</h1>
|
|
|
</header>
|
|
|
</div>
|
|
|
-{% endblock %} {% block content_main %}
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block content_main %}
|
|
|
<div class="content-main admin-customize">
|
|
|
- {% set smessage = req.flash('successMessage') %} {% if smessage.length %}
|
|
|
+ {% set smessage = req.flash('successMessage') %}
|
|
|
+ {% if smessage.length %}
|
|
|
<div class="alert alert-success">
|
|
|
{{ smessage }}
|
|
|
</div>
|
|
|
- {% endif %} {% set emessage = req.flash('errorMessage') %} {% if emessage.length %}
|
|
|
+ {% endif %}
|
|
|
+ {% set emessage = req.flash('errorMessage') %}
|
|
|
+ {% if emessage.length %}
|
|
|
<div class="alert alert-danger">
|
|
|
{{ emessage }}
|
|
|
</div>
|
|
|
@@ -37,5 +53,7 @@
|
|
|
<div id="admin-customize"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- {% endblock content_main %} {% block content_footer %} {% endblock content_footer %}
|
|
|
</div>
|
|
|
+{% endblock content_main %}
|
|
|
+
|
|
|
+{% block content_footer %} {% endblock content_footer %}
|