user_page.html 1.7 KB

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