user_page.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {% extends 'page.html' %}
  2. {% block main_css_class %}
  3. {% parent %}
  4. user-page
  5. {% endblock %}
  6. {% block content_main %}
  7. <div class="row">
  8. <div class="col grw-page-content-container">
  9. {#
  10. # ensure to insert 'user_page_content' widget to here
  11. #
  12. # Because this block has content like 'Bookmarks' or 'Recent Created' whose height changes dynamically,
  13. # setting of 'revision-toc' (affix) is hindered.
  14. #}
  15. <div class="mb-5 user-page-content-container d-edit-none d-print-none">
  16. {% include '../widget/user_page_content.html' %}
  17. </div>
  18. {% block content_main_before %}
  19. {% parent %}
  20. {% endblock %}
  21. {% include '../widget/page_content.html' %}
  22. {# force remove #revision-toc from #content_main of parent #}
  23. <script>
  24. $('#revision-toc').remove();
  25. </script>
  26. </div> {# /.col- #}
  27. {# relocate #revision-toc #}
  28. <div class="col-xl-2 col-lg-3 d-none d-lg-block revision-toc-container">
  29. <div id="revision-toc" class="revision-toc mt-3 sps sps--abv" data-sps-offset="116">
  30. <div id="revision-toc-content" class="revision-toc-content"></div>
  31. </div>
  32. </div> {# /.col- #}
  33. </div>
  34. {% endblock %}
  35. {% block content_main_after %}
  36. {% include 'widget/comments.html' %}
  37. {% if page %}
  38. {% include '../widget/page_attachments.html' %}
  39. {% endif %}
  40. {% endblock %}