user_page.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {% extends 'page.html' %}
  2. {% block main_css_class %}
  3. {% parent %}
  4. user-page
  5. {% endblock %}
  6. {% block content_header %}
  7. {% if pageUser %}
  8. {% include '../widget/user_page_header.html' %}
  9. {% else %}
  10. {% parent %}
  11. {% endif %}
  12. {% endblock %}
  13. {% block content_main %}
  14. <div class="row">
  15. <div class="col-lg-10 col-md-9">
  16. {#
  17. # ensure to insert 'user_page_content' widget to here
  18. #
  19. # Because this block has content like 'Bookmarks' or 'Recent Created' whose height changes dynamically,
  20. # setting of 'revision-toc' (affix) is hindered.
  21. #}
  22. <div class="m-b-30 user-page-content-container">
  23. {% include '../widget/user_page_content.html' %}
  24. </div>
  25. {% block content_main_before %}
  26. {% parent %}
  27. {% endblock %}
  28. {% include '../widget/page_content.html' %}
  29. {# force remove #revision-toc from #content_main of parent #}
  30. <script>
  31. $('#revision-toc').remove();
  32. </script>
  33. </div> {# /.col- #}
  34. {# relocate #revision-toc #}
  35. <div class="col-lg-2 col-md-3 revision-toc-container hidden-sm hidden-xs">
  36. <div id="revision-toc" class="revision-toc" data-spy="affix" data-offset-top="75">
  37. <div id="revision-toc-content" class="revision-toc-content"></div>
  38. </div>
  39. </div> {# /.col- #}
  40. </div>
  41. {% if 'growi' === behaviorType() || 'crowi-plus' === behaviorType() %}
  42. <div class="row page-list m-t-30">
  43. <div class="col-md-10">
  44. {% include '../widget/page_list_and_timeline.html' %}
  45. </div>
  46. </div>
  47. {% endif %}
  48. {% endblock %}
  49. {% block content_main_after %}
  50. {% include 'widget/comments.html' %}
  51. {% endblock %}