{% if url %}
    {{ component('icon_link', url=url, new_window=new_window, tooltip=tooltip, icon=icon, title=title) }}
{% else %}
    {{ component('icon', type=icon.type, url=icon.url, glyphicon_class=icon.class) }}
{% endif %}
