customize.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% extends '../layout/admin.html' %} {% block html_title %}{{ customizeService.generateCustomTitle(t('Customize')) }} {% endblock %} {% block theme_css_block %}
  2. {% set themeName = getConfig('crowi', 'customize:theme') %} {% if env === 'development' %}
  3. <script src="{{ webpack_asset('styles/theme-' + themeName + '.js') }}"></script>
  4. {% else %}
  5. <link rel="stylesheet" id="jssDefault" {# append id for theme selector #} href="{{ webpack_asset('styles/theme-' + themeName + '.css') }}" />
  6. {% endif %} {% endblock %} {% block html_additional_headers %} {% parent %}
  7. <!-- CodeMirror -->
  8. {{ cdnStyleTag('jquery-ui') }}
  9. <style>
  10. .CodeMirror {
  11. border: 1px solid #eee;
  12. }
  13. </style>
  14. {% endblock %} {% block content_header %}
  15. <div class="header-wrap">
  16. <header id="page-header">
  17. <h1 id="admin-title" class="title">{{ t('Customize') }}</h1>
  18. </header>
  19. </div>
  20. {% endblock %} {% block content_main %}
  21. <div class="content-main admin-customize">
  22. {% set smessage = req.flash('successMessage') %} {% if smessage.length %}
  23. <div class="alert alert-success">
  24. {{ smessage }}
  25. </div>
  26. {% endif %} {% set emessage = req.flash('errorMessage') %} {% if emessage.length %}
  27. <div class="alert alert-danger">
  28. {{ emessage }}
  29. </div>
  30. {% endif %}
  31. <div class="row">
  32. <div class="col-md-3">
  33. {% include './widget/menu.html' with {current: 'customize'} %}
  34. </div>
  35. <div class="col-md-9">
  36. <div id="admin-customize"></div>
  37. </div>
  38. </div>
  39. {% endblock content_main %} {% block content_footer %} {% endblock content_footer %}
  40. </div>