user_page.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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="d-flex justify-content-between">
  12. <div class="grw-page-content-container flex-grow-1">
  13. {#
  14. # Because this block has content like 'Bookmarks' or 'Recent Created' whose height changes dynamically,
  15. # setting of 'revision-toc' (affix) is hindered.
  16. #}
  17. <div class="mb-5 user-page-content-container d-edit-none d-print-none">
  18. </div>
  19. {% block content_main_before %}
  20. {% parent %}
  21. {% endblock %}
  22. {% include '../widget/page_content.html' %}
  23. {# force remove #revision-toc from #content_main of parent #}
  24. <script>
  25. $('#revision-toc').remove();
  26. </script>
  27. </div> {# /.col- #}
  28. {# relocate #revision-toc #}
  29. <div class="d-none d-lg-block revision-toc-container">
  30. <div id="revision-toc" class="revision-toc mt-3 sps sps--abv" data-sps-offset="116">
  31. <div id="revision-toc-content" class="revision-toc-content"></div>
  32. </div>
  33. </div> {# /.col- #}
  34. </div>
  35. {% endblock %}
  36. {% block content_main_after %}
  37. {% include 'widget/comments.html' %}
  38. {% if page %}
  39. <div class="grw-page-list-m my-5">
  40. <h1 class="grw-page-list-title-m border-bottom pb-2 mb-3">
  41. <i id="user-bookmark-icon"></i>
  42. Bookmarks
  43. </h1>
  44. <div class="page-list" id="user-bookmark-list">
  45. <div class="page-list-container">
  46. </div>
  47. </div>
  48. </div>
  49. <div class="grw-page-list-m my-5">
  50. <h1 class="grw-page-list-title-m border-bottom pb-2 mb-3">
  51. <i id="recent-created-icon"></i>
  52. Recently Created
  53. </h2>
  54. <div class="page-list" id="user-created-list">
  55. <div class="page-list-container">
  56. </div>
  57. </div>
  58. </div>
  59. {% endif %}
  60. {% if page %}
  61. {% include '../widget/page_attachments.html' %}
  62. {% endif %}
  63. {% endblock %}