not_found_content.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <div class="row not-found-message-row mb-4 d-edit-none">
  2. <div class="col-md-12">
  3. <h2 class="text-muted">
  4. <i class="icon-info" aria-hidden="true"></i>
  5. Page is not found
  6. </h2>
  7. </div>
  8. </div>
  9. <div id="content-main" class="content-main page-list"
  10. data-path="{{ encodeURI(path) }}"
  11. data-current-user="{% if user %}{{ user._id.toString() }}{% endif %}"
  12. {% if templateTags %}
  13. data-template-tags="{{ templateTags }}"
  14. {% endif %}
  15. >
  16. {% include 'not_found_tabs.html' %}
  17. <div class="tab-content">
  18. {# TODO: should be removed and transplanted to PageContainer.initStateMarkdown ------ from here ------ #}
  19. {% if getConfig('crowi', 'customize:isEnabledAttachTitleHeader') %}
  20. {% if template %}
  21. <script type="text/template" id="raw-text-original"># {{ path | path2name | preventXss }}&NewLine;{{ template }}</script>
  22. {% else %}
  23. <script type="text/template" id="raw-text-original"># {{ path | path2name | preventXss }}</script>
  24. {% endif %}
  25. {% else %}
  26. {% if template %}
  27. <script type="text/template" id="raw-text-original">{{ template }}</script>
  28. {% endif %}
  29. {% endif %}
  30. {# TODO: should be removed and transplanted to PageContainer.initStateMarkdown ------ to here ------ #}
  31. {# list view #}
  32. <div class="pt-2 active tab-pane page-list-container" id="revision-body">
  33. {% if pages.length == 0 %}
  34. <div class="mt-2">
  35. There are no pages under <strong>{{ path | preventXss }}</strong>.
  36. </div>
  37. {% endif %}
  38. {% include '../widget/page_list.html' with { pages: pages, pager: pager, viewConfig: viewConfig } %}
  39. </div>
  40. {# edit view #}
  41. <div class="tab-pane" id="edit">
  42. <div id="page-editor">{% if pageForm.body %}{{ pageForm.body }}{% endif %}</div>
  43. </div>
  44. {% include '../_form.html' %}
  45. </div>
  46. <div id="page-status-alert"></div>
  47. </div>