user_page.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 hidden-print">
  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 class="liker-and-seenusers d-flex align-items-end justify-content-end">
  37. {% if page.seenUsers.length > 10 %}<span class="text-muted">..</span>{% endif %}
  38. <span id="seen-user-list" class="mr-3" data-user-ids="{{ page.seenUsers|slice(-10)|default([])|join(',') }}"></span>
  39. <span class="text-danger">
  40. <i class="icon-fw fa fa-paw"></i><span class="seen-user-count">{{ page.seenUsers.length|default(0) }}</span>
  41. </span>
  42. </div>
  43. <div id="revision-toc" class="revision-toc mt-3" data-spy="affix" data-offset-top="116">
  44. <div id="revision-toc-content" class="revision-toc-content"></div>
  45. </div>
  46. </div> {# /.col- #}
  47. </div>
  48. {% if 'growi' === getConfig('crowi', 'customize:behavior') || 'crowi-plus' === getConfig('crowi', 'customize:behavior') %}
  49. <div class="row page-list hidden-print m-t-30">
  50. <div class="col-md-10">
  51. {% include '../widget/page_list_and_timeline.html' %}
  52. </div>
  53. </div>
  54. {% endif %}
  55. {% endblock %}
  56. {% block content_main_after %}
  57. {% include 'widget/comments.html' %}
  58. {% endblock %}