page_list.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. {% include '../widget/header-buttons.html' %}
  18. </div>
  19. </header>
  20. {% endblock %}
  21. {% block content_main %}
  22. {% block content_main_before %}
  23. {% endblock %}
  24. {# page-list-search should be fully managed by react.js,
  25. # but now the header and page list content is rendered separately by the server,
  26. # so now bind the values through the hidden fields.
  27. #}
  28. {% if false %} {# Disable temporaly -- 2018.03.08 Yuki Takei #}
  29. {% if isSearchServiceConfigured() && !isTopPage() && !isTrashPage() %}
  30. <div id="page-list-search">
  31. </div>
  32. {% endif %}
  33. {% endif %}
  34. <div>
  35. {% include '../widget/page_content.html' %}
  36. </div>
  37. <div class="row page-list hidden-print {% if page.isPortal() %}mt-5{% endif %}">
  38. <div class="col-md-12">
  39. {% include '../widget/page_list_and_timeline.html' %}
  40. </div>
  41. </div>
  42. {% endblock %}
  43. {% block content_main_after %}
  44. {% endblock %}
  45. {% block content_footer %}
  46. <footer>
  47. </footer>
  48. {% endblock %}
  49. {% block side_header %}
  50. {% if not page and not isUserPageList(path) and !isTrashPage() %}
  51. {% include '../widget/create_portal.html' %}
  52. {% else %}
  53. {% include 'widget/page_side_header.html' %}
  54. {% endif %}
  55. {% endblock %} {# side_header #}
  56. {% block body_end %}
  57. <div id="crowi-modals">
  58. {% include '../modal/what_is_portal.html' %}
  59. {% include '../modal/unportalize.html' %}
  60. </div>
  61. {% endblock %} {# body_end #}