new_page.html 3.7 KB

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