base.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {% load i18n staticfiles misago_json %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  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. </head>
  28. <body>
  29. <div id="auth-message-mount"></div>
  30. <div id="snackbar-mount"></div>
  31. {% include "misago/jumbotron.html" %}
  32. {% include "misago/navbar.html" %}
  33. <div id="page-mount">
  34. {% block content %}{% endblock content %}
  35. </div>
  36. {% include "misago/posting.html" %}
  37. {% include "misago/footer.html" %}
  38. {% include "misago/auth.html" %}
  39. <div class="modal fade" id="modal-mount" tabindex="-1" role="dialog" aria-labelledby="misago-modal-label"></div>
  40. {% if is_ie %}
  41. <script src="{% static 'misago/js/es2015.js' %}"></script>
  42. {% endif %}
  43. <script type="text/javascript" src="{% url 'django-i18n' %}"></script>
  44. {% if LANGUAGE_CODE != "en-us" %}
  45. <script type="text/javascript" src="{% url 'moment-i18n' %}"></script>
  46. {% endif %}
  47. <script type="text/javascript" src="{% static 'misago/js/vendor.js' %}"></script>
  48. <script type="text/javascript" src="{% static 'misago/js/misago.js' %}"></script>
  49. {% include "misago/scripts.html" %}
  50. <script type="text/javascript">
  51. misago.init({{ frontend_context|as_json }});
  52. </script>
  53. </body>
  54. </html>