{% macro page_title_macro(t) %} {% block title %}{{ _('Mozilla Developer Network') }}{% endblock %} {% endmacro %} {% macro site_css() %} {% block site_css %} {{ css('mdn') }} {% for style in styles %} {{ css(style) }} {% endfor %} {% if waffle.flag('redesign') %} {{ css('redesign-main') }} {% endif %} {% endblock %} {% endmacro %} {% macro lang_switcher() %} {% if not is_sphinx %} {% block lang_switcher %} {% include "includes/lang_switcher.html" %} {% endblock %} {% endif %} {% endmacro %} {% macro extrahead() %} {% block extrahead %}{% endblock %} {% endmacro %} {% macro pageid() %} {% block pageid %}{% endblock %} {% endmacro %} {% macro bodyclass() %} {% block bodyclass %}{% endblock %} {% endmacro %} {% macro page_content() %} {% block content %}{% endblock %} {% endmacro %} {% macro site_js() %} {% block site_js %} {% if waffle.flag('redesign') %} {% endif %} {{ js('mdn') }} {% for script in scripts %} {{ js(script) }} {% endfor %} {% if waffle.flag('redesign') %} {{ js('redesign-main') }} {% endif %} {% endblock %} {% endmacro %} {% macro page_js() %} {% block js %}{% endblock %} {% endmacro %} {% from "includes/common_macros.html" import optimizely_script with context %} {% if waffle.flag('redesign') %} {{ page_title_macro() }} {{ site_css() }} {% include "includes/config.html" %} {{ extrahead() }} {% if not is_sphinx %} {% include "includes/google_analytics.html" %} {% endif %}
{{ _('Welcome to the new MDN beta! See a problem or have a suggestion? Here\'s how you can help!') }}
mozilla {% if not is_sphinx %} {% include "includes/login.html" %} {% endif %}
{% block masthead %}{% endblock %}
{{ page_content() }}
{{ site_js() }} {{ page_js() }} {% else %} {% if not is_sphinx %} {{ optimizely_script() }} {% endif %} {{ page_title_macro() }} {{ site_css() }} {% include "includes/config.html" %} {{ extrahead() }} {% if not is_sphinx %} {% include "includes/google_analytics.html" %} {% endif %} {% if waffle.flag('redesign_beta_notice') %} {% if user.is_authenticated() %}
{{ _('We\'re working on new design for MDN! To help beta-test it, edit your profile a and select the Beta user checkbox. You will view MDN with the new design, and be able to give feedback.') % url('devmo.views.profile_edit', username=user.username) }}
{% else %}
{{ _('MDN is being redesigned! Want to help beta-test it? (Sign up for and) sign in to your MDN account, and then select Beta user in your profile.') % url('users.login') }}
{% endif %} {% endif %}
{% block headerlogo %} {% endblock %}
{% block headernav %} {% endblock %} {% if not is_sphinx %} {% include "includes/login.html" %} {% endif %} mozilla
{# end head #} {{ soapbox_messages(get_soapbox_messages(request.path)) }} {{ page_content() }} {# footer #}

{% trans feedback_url=devmo_url('Project:Feedback') %} Is MDN helpful to you? Please share your feedback with us. Or join our mailing list about improving MDN content. {% endtrans %}

{{ site_js() }} {{ page_js() }} {# end js #} {% endif %} {# ends redesign flag #}