layout.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <script>
  23. function DrawScrollbar() {
  24. var h = window.innerHeight - document.getElementById('page-header').clientHeight ;
  25. $('#revision-toc-content').slimScroll({
  26. railVisible: true,
  27. position: 'right',
  28. height: h,
  29. });
  30. }
  31. $(function(){
  32. DrawScrollbar();
  33. });
  34. (function () {
  35. var timer = 0;
  36. window.onresize = function () {
  37. if (timer > 0) {
  38. clearTimeout(timer);
  39. }
  40. timer = setTimeout(function () {
  41. DrawScrollbar();
  42. }, 200);
  43. };
  44. }());
  45. </script>
  46. <footer class="footer">
  47. {% include '../../widget/system-version.html' %}
  48. </footer>
  49. {% endblock %} {# layout_main #}