not_found.html 3.0 KB

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