not_found.html 3.1 KB

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