not_found.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {% extends 'layout/2column.html' %}
  2. {% block layout_header %}
  3. {% block layout_header_before %}
  4. {% endblock %}
  5. <div class="header-wrap">
  6. <header id="page-header">
  7. <div class="flex-title-line">
  8. <div>
  9. <h1 class="title flex-item-title" id="revision-path"></h1>
  10. <div id="revision-url" class="url-line"></div>
  11. </div>
  12. </div>
  13. </header>
  14. </div>
  15. {% block layout_header_after %}
  16. {% endblock %}
  17. {% endblock %} {# /content_head #}
  18. {% block content_main %}
  19. {% block content_main_before %}
  20. {% if req.query.renamed %}
  21. <div class="alert alert-info alert-moved">
  22. <span>
  23. <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.renamed) }}
  24. </span>
  25. </div>
  26. {% endif %}
  27. {% if req.query.unlinked %}
  28. <div class="alert alert-info alert-unlinked">
  29. <strong>{{ t('Unlinked') }}: </strong> {{ t('page_page.notice.unlinked') }}
  30. </div>
  31. {% endif %}
  32. <h2 class="message-not-found text-muted">
  33. <i class="icon-info" aria-hidden="true"></i>
  34. Page is not found
  35. </h2>
  36. {% endblock %}
  37. <div id="content-main" class="content-main content-main-not-found page-list"
  38. data-path="{{ path }}"
  39. data-path-shortname="{{ path|path2name }}"
  40. data-current-user="{% if user %}{{ user._id.toString() }}{% endif %}"
  41. >
  42. <ul class="nav nav-tabs hidden-print">
  43. <li class="active"><a href="#revision-body" data-toggle="tab">{{ t('List View') }}</a></li>
  44. <li>
  45. <a {% if user %}href="#edit-form" data-toggle="tab"{% endif %} class="edit-button {% if not user %}edit-button-disabled{% endif %}">
  46. <i class="icon-note"></i> {{ t('Create') }}
  47. </a>
  48. </li>
  49. {% if user %}
  50. <li class="dropdown pull-right">
  51. <a href="#" onclick="history.back();"><i class="icon-close"></i> {{ t('Cancel') }}</a>
  52. </li>
  53. {% endif %}
  54. </ul>
  55. <div class="tab-content">
  56. {# list view #}
  57. <div class="active tab-pane page-list-container" id="revision-body">
  58. {% if pages.length == 0 %}
  59. <div class="m-t-20">
  60. There are no pages under <strong>{{ path }}</strong>.
  61. </div>
  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 %}