new_page.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {% extends 'base/page_nosidebar.html' %}
  2. {% block main_css_class %}
  3. main-crowi-plus-customized
  4. {% parent %}
  5. {% endblock %}
  6. {% block content_head %}
  7. {% block content_head_before %}
  8. {% endblock %}
  9. <div class="header-wrap">
  10. <header id="page-header">
  11. <p class="stopper"><a href="#" data-affix-disable="#page-header"><i class="fa fa-chevron-up"></i></a></p>
  12. <div class="flex-title-line">
  13. <div>
  14. <h1 class="title flex-item-title" id="revision-path"></h1>
  15. <div id="revision-url" class="url-line"></div>
  16. </div>
  17. </div>
  18. </header>
  19. </div>
  20. {% block content_head_after %}
  21. {% endblock %}
  22. {% endblock %} {# /content_head #}
  23. {% block content_main %}
  24. <div class="container-fluid">
  25. <div class="row">
  26. <div class="col-lg-10 col-md-9">
  27. {% block content_main_before %}
  28. <h2 class="text-muted">
  29. <i class="fa fa-info-circle" aria-hidden="true"></i>
  30. Page is not found
  31. </h2>
  32. {% endblock %}
  33. <div id="content-main" class="content-main content-main-new-page page-list"
  34. data-path="{{ path }}"
  35. data-path-shortname="{{ path|path2name }}"
  36. data-page-id="{% if page %}{{ page._id.toString() }}{% endif %}"
  37. data-current-user="{% if user %}{{ user._id.toString() }}{% endif %}"
  38. data-current-username="{% if user %}{{ user.username }}{% endif %}"
  39. data-page-revision-id="{% if revision %}{{ revision._id.toString() }}{% endif %}"
  40. data-page-revision-created="{% if revision %}{{ revision.createdAt|datetz('U') }}{% endif %}"
  41. data-page-is-seen="{% if page and page.isSeenUser(user) %}1{% else %}0{% endif %}"
  42. data-linebreaks-enabled="{{ isEnabledLinebreaks() }}"
  43. data-csrftoken="{{ csrf() }}"
  44. >
  45. <ul class="nav nav-tabs hidden-print">
  46. <li class="active"><a href="#revision-body" data-toggle="tab">{{ t('List View') }}</a></li>
  47. <li>
  48. <a {% if user %}href="#edit-form" data-toggle="tab"{% endif %} class="edit-button {% if not user %}edit-button-disabled{% endif %}">
  49. <i class="fa fa-pencil-square-o"></i> {{ t('Create') }}
  50. </a>
  51. </li>
  52. {% if user %}
  53. <li class="dropdown pull-right">
  54. <a href="#" onclick="history.back();"><i class="fa fa-times"></i> {{ t('Cancel') }}</a>
  55. </li>
  56. {% endif %}
  57. </ul>
  58. <div class="tab-content wiki-content">
  59. {% if req.query.renamed %}
  60. <div class="alert alert-info alert-moved">
  61. <span>
  62. <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.renamed) }}
  63. </span>
  64. </div>
  65. {% endif %}
  66. {% if req.query.unlinked %}
  67. <div class="alert alert-info">
  68. <strong>{{ t('Unlinked') }}: </strong> {{ t('page_page.notice.unlinked') }}
  69. </div>
  70. {% endif %}
  71. {# list view #}
  72. <div class="active tab-pane page-list-container" id="revision-body">
  73. {% if pages.length == 0 %}
  74. There are no pages under <strong>{{ path }}</strong>.
  75. {% endif %}
  76. {% include '../widget/page_list.html' with { pages: pages, pager: pager, viewConfig: viewConfig } %}
  77. </div>
  78. {# edit view #}
  79. <div class="edit-form tab-pane {% if req.body.pageForm %}active{% endif %}" id="edit-form">
  80. {% include '../_form.html' %}
  81. </div>
  82. </div>
  83. </div>
  84. {% block content_main_after %}
  85. {% endblock %}
  86. </div> {# /.col- #}
  87. </div>
  88. </div>
  89. {% endblock %}
  90. {% block content_main_after %}
  91. {% endblock %}
  92. {% block content_footer %}
  93. {% endblock %}