base.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {% load pipeline i18n staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="{{ LANGUAGE_CODE }}">
  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>{% block title %}{{ misago_settings.forum_name }}{% endblock %}</title>
  9. <meta name="description" content="{% block meta-description %}{% endblock %}">
  10. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  11. <!--[if lt IE 9]>
  12. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  13. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  14. <![endif]-->
  15. {% stylesheet 'misago' %}
  16. <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{% static 'apple-touch-icon-144-precomposed.png' %}">
  17. <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{% static 'apple-touch-icon-114-precomposed.png' %}">
  18. <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{% static 'apple-touch-icon-72-precomposed.png' %}">
  19. <link rel="apple-touch-icon-precomposed" href="{% static 'apple-touch-icon-57-precomposed.png' %}">
  20. <link rel="shortcut icon" href="{% static 'favicon.ico' %}">
  21. </head>
  22. <body>
  23. {% include "misago/navbar.html" %}
  24. {% include "misago/jumbotron.html" %}
  25. {% include "misago/messages.html" %}
  26. {% block content %}{% endblock %}
  27. {% include "misago/footer.html" %}
  28. {% include "misago/modal.html" %}
  29. {# We include JavaScript at the end of page body so it renders faster #}
  30. <script lang="JavaScript">
  31. var is_authenticated = {{ user.is_authenticated|yesno:"true,false" }};
  32. var lang_play_media = "{% trans "Play media" %}";
  33. var lang_media_author = "{% trans "uploaded by {author}" %}";
  34. var lang_time_units = "{% trans "smhd" %}";
  35. var lang_dismiss_editor = "{% trans "Are you sure you want to abandon your message?" %}";
  36. var ajax_errors = {
  37. generic: "{% trans "Server returned unspecified error. Refresh page and try again." %}",
  38. not_found: "{% trans "API link is invalid." %}",
  39. timeout: "{% trans "Request has timed out." %}"
  40. };
  41. var uiserver_url = "{% url 'misago:ui_server' %}";
  42. </script>
  43. {% javascript 'misago' %}
  44. <script lang="JavaScript">
  45. $(function() {
  46. Misago.Alerts = new MisagoAlerts({
  47. generic_error: "{% trans "Unspecified error occured." %}",
  48. error_template: "<div class=\"alert-div\"><p class=\"alert alert-danger\"><span class=\"alert-icon fa fa-times-circle\"></span>%message% <button type=\"button\" class=\"close\">{% trans "Ok!" %}</button></p></div>",
  49. info_template: "<div class=\"alert-div\"><p class=\"alert alert-info\"><span class=\"alert-icon fa fa-info-circle\"></span>%message% <button type=\"button\" class=\"close\">{% trans "Ok!" %}</button></p></div>",
  50. success_template: "<div class=\"alert-div\"><p class=\"alert alert-success\"><span class=\"alert-icon fa fa-check-circle\"></span>%message% <button type=\"button\" class=\"close\">{% trans "Ok!" %}</button></p></div>"
  51. });
  52. });
  53. </script>
  54. {% block javascripts %}{% endblock javascripts %}
  55. </body>
  56. </html>