layout.html 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. {# Import the theme's layout. #}
  2. {% extends "!layout.html" %}
  3. {# Custom CSS overrides #}
  4. {% set bootswatch_css_custom = ['_static/style.css', "../../css/converse.min.css"] %}
  5. {% set script_files = script_files + ["../../builds/converse.min.js"] %}
  6. {# Add some extra stuff before and use existing with 'super()' call. #}
  7. {% block footer %}
  8. {{ super() }}
  9. <script type="text/javascript">
  10. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  11. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  12. </script>
  13. <script type="text/javascript">try { var pageTracker = _gat._getTracker("UA-2128260-8"); pageTracker._trackPageview(); } catch(err) {}</script>
  14. <script>
  15. require(['converse'], function (converse) {
  16. converse.initialize({
  17. bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
  18. i18n: locales['en'], // Refer to ./locale/locales.js to see which locales are supported
  19. keepalive: true,
  20. play_sounds: true,
  21. roster_groups: true,
  22. debug: false,
  23. xhr_user_search: false
  24. });
  25. });
  26. </script>
  27. {% endblock %}