user_page.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. <div class="row page-list d-edit-none d-print-none mt-5">
  35. <div class="col-md-10">
  36. {% include '../widget/page_list_and_timeline.html' %}
  37. </div>
  38. </div>
  39. {% endblock %}
  40. {% block content_main_after %}
  41. {% include 'widget/comments.html' %}
  42. {% if page %}
  43. {% include '../widget/page_attachments.html' %}
  44. {% endif %}
  45. {% endblock %}