base.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {% load i18n staticfiles misago_json %}
  2. <!DOCTYPE html>
  3. <html lang="{{ LANGUAGE_CODE_SHORT }}">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width,initial-scale=1">
  8. <title>{% spaceless %}{% block title %}{{ misago_settings.forum_name }}{% endblock %}{% endspaceless %}</title>
  9. <meta name="description" content="{% spaceless %}{% block meta-description %}{% endblock %}{% endspaceless %}">
  10. {% spaceless %}
  11. {% block meta-extra %}{% endblock meta-extra %}
  12. {% endspaceless %}
  13. <link href="{% static 'misago/css/misago.css' %}" rel="stylesheet">
  14. <link rel="apple-touch-icon" href="{% static 'apple-touch-icon.png' %}">
  15. <link rel="apple-touch-icon" sizes="57x57" href="{% static 'apple-touch-icon-57.png' %}">
  16. <link rel="apple-touch-icon" sizes="72x72" href="{% static 'apple-touch-icon-72.png' %}">
  17. <link rel="apple-touch-icon" sizes="76x76" href="{% static 'apple-touch-icon-76.png' %}">
  18. <link rel="apple-touch-icon" sizes="80x80" href="{% static 'apple-touch-icon-80.png' %}">
  19. <link rel="apple-touch-icon" sizes="114x114" href="{% static 'apple-touch-icon-114.png' %}">
  20. <link rel="apple-touch-icon" sizes="120x120" href="{% static 'apple-touch-icon-120.png' %}">
  21. <link rel="apple-touch-icon" sizes="144x144" href="{% static 'apple-touch-icon-144.png' %}">
  22. <link rel="apple-touch-icon" sizes="152x152" href="{% static 'apple-touch-icon-152.png' %}">
  23. <link rel="apple-touch-icon" sizes="167x167" href="{% static 'apple-touch-icon-167.png' %}">
  24. <link rel="apple-touch-icon" sizes="180x180" href="{% static 'apple-touch-icon-180.png' %}">
  25. <link rel="shortcut icon" href="{% static 'favicon.ico' %}">
  26. <link rel="icon" sizes="16x16 32x32" href="{% static 'favicon.ico' %}">
  27. <script type="application/ld+json">{"@context":"http://schema.org","@type":"WebSite","url":"{{ SITE_ADDRESS }}"}</script>
  28. </head>
  29. <body>
  30. <div id="auth-message-mount"></div>
  31. <div id="snackbar-mount"></div>
  32. {% include "misago/jumbotron.html" %}
  33. {% include "misago/navbar.html" %}
  34. <div id="page-mount">
  35. {% block content %}{% endblock content %}
  36. </div>
  37. {% include "misago/posting.html" %}
  38. {% include "misago/footer.html" %}
  39. {% include "misago/auth.html" %}
  40. <div class="modal fade" id="modal-mount" tabindex="-1" role="dialog" aria-labelledby="misago-modal-label"></div>
  41. <script src="{% url 'django-i18n' %}"></script>
  42. <script type="text/javascript">
  43. if (!(Object.assign && Array.from)) {
  44. var polyfill = document.createElement('script');
  45. polyfill.src = '{% static "misago/js/es2015.js" %}';
  46. document.getElementsByTagName('head')[0].appendChild(polyfill);
  47. }
  48. </script>
  49. <script src="{% static 'misago/js/vendor.js' %}"></script>
  50. {% if LANGUAGE_CODE != "en-us" and MOMENTJS_LOCALE_URL %}
  51. <script src="{% static MOMENTJS_LOCALE_URL %}"></script>
  52. {% endif %}
  53. <script src="{% static 'misago/js/misago.js' %}"></script>
  54. {% include "misago/scripts.html" %}
  55. <script type="text/javascript">
  56. misago.init({{ frontend_context|as_json }});
  57. </script>
  58. </body>
  59. </html>