{% macro heading(app, text, icon) -%} {% if waffle.flag ('restyle') and request.APP == amo.FIREFOX %} {% else %} {{ APP.pretty }} {% endif %} {{ text }} {%- endmacro %} {% if request.APP == amo.FIREFOX %} {{ heading('Firefox', _('Add-ons'), 'firefox') }} {% elif request.APP == amo.THUNDERBIRD %} {{ heading('Thunderbird', _('Add-ons'), 'thunderbird') }} {% elif request.APP == amo.MOBILE %} {{ heading('Firefox Mobile', _('Mobile Add-ons'), 'firefox') }} {% elif request.APP == amo.SEAMONKEY %} {{ heading('SeaMonkey', _('Add-ons'), 'seamonkey') }} {% elif request.APP == amo.ANDROID %} {{ heading('Android', _('Android Add-ons'), 'firefox') }} {% else %} {{ heading('', _('Add-ons'), 'generic') }} {% endif %}