not_found.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <h2 class="message-not-found text-muted">
  21. <i class="fa fa-info-circle" aria-hidden="true"></i>
  22. Page is not found
  23. </h2>
  24. {% endblock %}
  25. <div id="content-main" class="content-main content-main-not-found page-list"
  26. data-path="{{ path }}"
  27. data-path-shortname="{{ path|path2name }}"
  28. data-current-user="{% if user %}{{ user._id.toString() }}{% endif %}"
  29. >
  30. <ul class="nav nav-tabs hidden-print">
  31. <li class="active"><a href="#revision-body" data-toggle="tab">{{ t('List View') }}</a></li>
  32. <li>
  33. <a {% if user %}href="#edit-form" data-toggle="tab"{% endif %} class="edit-button {% if not user %}edit-button-disabled{% endif %}">
  34. <i class="fa fa-pencil-square-o"></i> {{ t('Create') }}
  35. </a>
  36. </li>
  37. {% if user %}
  38. <li class="dropdown pull-right">
  39. <a href="#" onclick="history.back();"><i class="fa fa-times"></i> {{ t('Cancel') }}</a>
  40. </li>
  41. {% endif %}
  42. </ul>
  43. <div class="tab-content">
  44. {% if req.query.renamed %}
  45. <div class="alert alert-info alert-moved">
  46. <span>
  47. <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.renamed) }}
  48. </span>
  49. </div>
  50. {% endif %}
  51. {% if req.query.unlinked %}
  52. <div class="alert alert-info">
  53. <strong>{{ t('Unlinked') }}: </strong> {{ t('page_page.notice.unlinked') }}
  54. </div>
  55. {% endif %}
  56. {# list view #}
  57. <div class="active tab-pane page-list-container" id="revision-body">
  58. {% if pages.length == 0 %}
  59. There are no pages under <strong>{{ path }}</strong>.
  60. {% endif %}
  61. {% include 'widget/page_list.html' with { pages: pages, pager: pager, viewConfig: viewConfig } %}
  62. </div>
  63. {# edit view #}
  64. <div class="edit-form tab-pane {% if req.body.pageForm %}active{% endif %}" id="edit-form">
  65. {% include '_form.html' %}
  66. </div>
  67. </div>
  68. </div>
  69. {% block content_main_after %}
  70. {% endblock %}
  71. {% endblock %}
  72. {% block content_footer %}
  73. {% endblock %}