not_found.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {% extends 'layout/2column.html' %}
  2. {% block content_head %}
  3. {% block content_head_before %}
  4. {% endblock %}
  5. <div class="header-wrap">
  6. <header id="page-header">
  7. <p class="stopper"><a href="#" data-affix-disable="#page-header"><i class="fa fa-chevron-up"></i></a></p>
  8. <div class="flex-title-line">
  9. <div>
  10. <h1 class="title flex-item-title" id="revision-path"></h1>
  11. <div id="revision-url" class="url-line"></div>
  12. </div>
  13. </div>
  14. </header>
  15. </div>
  16. {% block content_head_after %}
  17. {% endblock %}
  18. {% endblock %} {# /content_head #}
  19. {% block content_main %}
  20. {% block content_main_before %}
  21. <h2 class="message-not-found text-muted">
  22. <i class="fa fa-info-circle" aria-hidden="true"></i>
  23. Page is not found
  24. </h2>
  25. {% endblock %}
  26. <div id="content-main" class="content-main content-main-not-found page-list"
  27. data-path="{{ path }}"
  28. data-path-shortname="{{ path|path2name }}"
  29. data-current-user="{% if user %}{{ user._id.toString() }}{% endif %}"
  30. >
  31. <ul class="nav nav-tabs hidden-print">
  32. <li class="active"><a href="#revision-body" data-toggle="tab">{{ t('List View') }}</a></li>
  33. <li>
  34. <a {% if user %}href="#edit-form" data-toggle="tab"{% endif %} class="edit-button {% if not user %}edit-button-disabled{% endif %}">
  35. <i class="fa fa-pencil-square-o"></i> {{ t('Create') }}
  36. </a>
  37. </li>
  38. {% if user %}
  39. <li class="dropdown pull-right">
  40. <a href="#" onclick="history.back();"><i class="fa fa-times"></i> {{ t('Cancel') }}</a>
  41. </li>
  42. {% endif %}
  43. </ul>
  44. <div class="tab-content wiki-content">
  45. {% if req.query.renamed %}
  46. <div class="alert alert-info alert-moved">
  47. <span>
  48. <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.renamed) }}
  49. </span>
  50. </div>
  51. {% endif %}
  52. {% if req.query.unlinked %}
  53. <div class="alert alert-info">
  54. <strong>{{ t('Unlinked') }}: </strong> {{ t('page_page.notice.unlinked') }}
  55. </div>
  56. {% endif %}
  57. <script type="text/template" id="raw-text-original"># {{ path|path2name }}</script>
  58. {# list view #}
  59. <div class="active tab-pane page-list-container" id="revision-body">
  60. {% if pages.length == 0 %}
  61. There are no pages under <strong>{{ path }}</strong>.
  62. {% endif %}
  63. {% include 'widget/page_list.html' with { pages: pages, pager: pager, viewConfig: viewConfig } %}
  64. </div>
  65. {# edit view #}
  66. <div class="edit-form tab-pane {% if req.body.pageForm %}active{% endif %}" id="edit-form">
  67. {% include '_form.html' %}
  68. </div>
  69. </div>
  70. </div>
  71. {% block content_main_after %}
  72. {% endblock %}
  73. {% endblock %}
  74. {% block content_footer %}
  75. {% endblock %}