not_found.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. {# list view #}
  58. <div class="active tab-pane page-list-container" id="revision-body">
  59. {% if pages.length == 0 %}
  60. There are no pages under <strong>{{ path }}</strong>.
  61. {% endif %}
  62. {% include 'widget/page_list.html' with { pages: pages, pager: pager, viewConfig: viewConfig } %}
  63. </div>
  64. {# edit view #}
  65. <div class="edit-form tab-pane {% if req.body.pageForm %}active{% endif %}" id="edit-form">
  66. {% include '_form.html' %}
  67. </div>
  68. </div>
  69. </div>
  70. {% block content_main_after %}
  71. {% endblock %}
  72. {% endblock %}
  73. {% block content_footer %}
  74. {% endblock %}