not_found.html 2.9 KB

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