layout.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {% extends '../../layout/layout.html' %}
  2. {% block layout_main %}
  3. <div class="container-fluid">
  4. <div class="row bg-title">
  5. <div class="col-xs-12">
  6. {% block content_header %}
  7. {% endblock %}
  8. </div>
  9. </div><!-- /.bg-title -->
  10. <div class="row">
  11. <div id="main" class="main m-t-15 col-md-12 {% if page %}{{ css.grant(page) }}{% endif %} {% block main_css_class %}{% endblock %}">
  12. {% block content_main_before %}
  13. {% endblock %}
  14. {% block content_main %}
  15. {% endblock content_main %}
  16. {% block content_main_after %}
  17. {% endblock %}
  18. </div>
  19. </div>
  20. </div><!-- /.container-fluid -->
  21. <!-- Side Scroll Bar-->
  22. * Disabled temporally -- 2018.06.06 Yuki Takei
  23. * see https://weseek.myjetbrains.com/youtrack/issue/GC-278
  24. *
  25. <script>
  26. function DrawScrollbar() {
  27. var h = window.innerHeight - 50 ;
  28. $('#revision-toc-content').slimScroll({
  29. railVisible: true,
  30. position: 'right',
  31. height: h,
  32. });
  33. }
  34. $(function(){
  35. DrawScrollbar();
  36. });
  37. (function () {
  38. var timer = 0;
  39. window.onresize = function () {
  40. if (timer > 0) {
  41. clearTimeout(timer);
  42. }
  43. timer = setTimeout(function () {
  44. DrawScrollbar();
  45. }, 200);
  46. };
  47. }());
  48. </script>
  49. <footer class="footer">
  50. {% include '../../widget/system-version.html' %}
  51. </footer>
  52. {% endblock %} {# layout_main #}