page_list.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {% extends 'base/layout.html' %}
  2. {% block html_base_attr %}
  3. data-spy="scroll"
  4. data-target="#search-result-list"
  5. {% endblock %}
  6. {% block content_header %}
  7. {% block content_header_before %}
  8. {% endblock %}
  9. <header id="page-header" class="{% if page %}has-page{% endif %}">
  10. <div class="d-flex align-items-center">
  11. <div class="title-container">
  12. <h1 class="title" id="revision-path"></h1>
  13. {% if page and not forbidden and not isTrashPage() %}
  14. <div id="tag-label"></div>
  15. {% endif %}
  16. </div>
  17. </div>
  18. </header>
  19. {% endblock %}
  20. {% block content_main %}
  21. {% block content_main_before %}
  22. {% endblock %}
  23. {# page-list-search should be fully managed by react.js,
  24. # but now the header and page list content is rendered separately by the server,
  25. # so now bind the values through the hidden fields.
  26. #}
  27. {% if false %} {# Disable temporaly -- 2018.03.08 Yuki Takei #}
  28. {% if isSearchServiceConfigured() && !isTopPage() && !isTrashPage() %}
  29. <div id="page-list-search">
  30. </div>
  31. {% endif %}
  32. {% endif %}
  33. <div>
  34. {% include '../widget/page_content.html' %}
  35. </div>
  36. <div class="row page-list d-edit-none d-print-none {% if page.isPortal() %}mt-5{% endif %}">
  37. <div class="col-md-12">
  38. {% include '../widget/page_list_and_timeline.html' %}
  39. </div>
  40. </div>
  41. {% endblock %}
  42. {% block content_main_after %}
  43. {% endblock %}
  44. {% block content_footer %}
  45. <footer>
  46. </footer>
  47. {% endblock %}
  48. {% block side_header %}
  49. {% if not page and not isUserPageList(path) and !isTrashPage() %}
  50. {% include '../widget/create_portal.html' %}
  51. {% else %}
  52. {% include 'widget/page_side_header.html' %}
  53. {% endif %}
  54. {% endblock %} {# side_header #}
  55. {% block body_end %}
  56. <div id="crowi-modals">
  57. {% include '../modal/what_is_portal.html' %}
  58. {% include '../modal/unportalize.html' %}
  59. </div>
  60. {% endblock %} {# body_end #}