user_page.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {% extends 'page.html' %}
  2. {% block main_css_class %}
  3. {% parent %}
  4. user-page
  5. {% endblock %}
  6. {% block content_main %}
  7. <div class="border-bottom pb-2">
  8. <div class="user-info" id="user-info">
  9. </div>
  10. </div>
  11. <div class="row">
  12. <div class="col grw-page-content-container">
  13. {#
  14. # ensure to insert 'user_page_content' widget to here
  15. #
  16. # Because this block has content like 'Bookmarks' or 'Recent Created' whose height changes dynamically,
  17. # setting of 'revision-toc' (affix) is hindered.
  18. #}
  19. <div class="mb-5 user-page-content-container d-edit-none d-print-none">
  20. {% include '../widget/user_page_content.html' %}
  21. </div>
  22. {% block content_main_before %}
  23. {% parent %}
  24. {% endblock %}
  25. {% include '../widget/page_content.html' %}
  26. {# force remove #revision-toc from #content_main of parent #}
  27. <script>
  28. $('#revision-toc').remove();
  29. </script>
  30. </div> {# /.col- #}
  31. {# relocate #revision-toc #}
  32. <div class="col-xl-2 col-lg-3 d-none d-lg-block revision-toc-container">
  33. <div id="revision-toc" class="revision-toc mt-3 sps sps--abv" data-sps-offset="116">
  34. <div id="revision-toc-content" class="revision-toc-content"></div>
  35. </div>
  36. </div> {# /.col- #}
  37. </div>
  38. {% endblock %}
  39. {% block content_main_after %}
  40. {% include 'widget/comments.html' %}
  41. {% if page %}
  42. <div class="grw-recently-created">
  43. <h1 class="recently-created-title border-bottom pb-2">
  44. <i id="recent-created-icon"></i>
  45. Recently Created
  46. </h2>
  47. <div class="user-created-list page-list" id="user-created-list">
  48. <div class="page-list-container">
  49. </div>
  50. </div>
  51. </div>
  52. {% endif %}
  53. {% if page %}
  54. {% include '../widget/page_attachments.html' %}
  55. {% endif %}
  56. {% endblock %}