{% macro heading(text, icon) -%} {{ text|f(media('img/zamboni/app_icons/' + icon + '.png'))|safe }} {%- 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 Add-ons'), 'firefox') }} {% elif request.APP == amo.SEAMONKEY %} {{ heading(_('SeaMonkey Add-ons'), 'seamonkey') }} {% else %} {{ heading(_(' Add-ons'), 'generic') }} {% endif %}