1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- {% load pipeline i18n staticfiles %}
- <!DOCTYPE html>
- <html lang="{{ LANGUAGE_CODE }}">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>{% block title %}{{ misago_settings.forum_name }}{% endblock %}</title>
- <meta name="description" content="{% block meta-description %}{% endblock %}">
- <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
- <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- {% stylesheet 'misago' %}
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{% static 'apple-touch-icon-144-precomposed.png' %}">
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{% static 'apple-touch-icon-114-precomposed.png' %}">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{% static 'apple-touch-icon-72-precomposed.png' %}">
- <link rel="apple-touch-icon-precomposed" href="{% static 'apple-touch-icon-57-precomposed.png' %}">
- <link rel="shortcut icon" href="{% static 'favicon.ico' %}">
- </head>
- <body>
- {% include "misago/navbar.html" %}
- {% include "misago/jumbotron.html" %}
- {% include "misago/messages.html" %}
- {% block content %}{% endblock %}
- {% include "misago/footer.html" %}
- {% include "misago/modal.html" %}
- {# We include JavaScript at the end of page body so it renders faster #}
- <script lang="JavaScript">
- var is_authenticated = {{ user.is_authenticated|yesno:"true,false" }};
- var lang_play_media = "{% trans "Play media" %}";
- var lang_media_author = "{% trans "uploaded by {author}" %}";
- var lang_time_units = "{% trans "smhd" %}";
- var lang_dismiss_editor = "{% trans "Are you sure you want to abandon your message?" %}";
- var ajax_errors = {
- generic: "{% trans "Server returned unspecified error. Refresh page and try again." %}",
- not_found: "{% trans "API link is invalid." %}",
- timeout: "{% trans "Request has timed out." %}"
- };
- var uiserver_url = "{% url 'misago:ui_server' %}";
- </script>
- {% javascript 'misago' %}
- <script lang="JavaScript">
- $(function() {
- Misago.Alerts = new MisagoAlerts({
- generic_error: "{% trans "Unspecified error occured." %}",
- 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>",
- 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>",
- 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>"
- });
- });
- </script>
- {% block javascripts %}{% endblock javascripts %}
- </body>
- </html>
|