base.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {% load compressed 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. {% compressed_css '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. {# We include JavaScript at the end of page body so it renders faster #}
  29. <script lang="JavaScript">
  30. var is_authenticated = {{ user.is_authenticated|yesno:"true,false" }};
  31. var lang_time_units = "{% trans "smhd" %}";
  32. var lang_yes = "{% trans "Yes" %}";
  33. var lang_no = "{% trans "No" %}";
  34. var ajax_errors = {
  35. generic: "{% trans "Server returned unspecified error. Refresh page and try again." %}",
  36. not_found: "{% trans "API link is invalid." %}",
  37. timeout: "{% trans "Request has timed out." %}"
  38. };
  39. var uiserver_url = "{% url 'misago:ui_server' %}";
  40. </script>
  41. {% compressed_js 'misago' %}
  42. <script lang="JavaScript">
  43. $(function() {
  44. $.misago_alerts({
  45. generic_error: "{% trans "Unspecified error occured." %}",
  46. 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>",
  47. 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>",
  48. 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>"
  49. });
  50. });
  51. </script>
  52. {% block javascripts %}{% endblock javascripts %}
  53. </body>
  54. </html>