
{% with supemail=config.SUPPORT_EMAIL_ADDRESS supchan=config.IRC_SUPPORT_CHANNEL supserv=config.IRC_SUPPORT_SERVER %}

    {% if supmail and supchan %}

        {% blocktrans %} contact us at <a href="mailto:{{ supmail }}">{{ supmail }}</a> or via <a href="irc://{{ supserv }}/{{ supchan}}"><code>{{ supchan }}</code> on <code>{{ supserv }}</code></a>.{% endblocktrans %}

    {% elif supmail %}

        {% blocktrans %} contact us at <a href="mailto:{{ supmail }}">{{ supmail }}</a>.{% endblocktrans %}

    {% elif supchan %}

        {% blocktrans %} contact us via <a href="irc://{{ supserv }}/{{ supchan}}"><code>{{ supchan }}</code> on <code>{{ supserv }}</code></a>.{% endblocktrans %}

    {% else %}

        {% blocktrans %} er… How to say it… Well, I can only sympathize because the local administrator has not configured any support information. Sorry for you!{% endblocktrans %}

    {% endif %}

{% endwith %}


{% with supemail=config.SUPPORT_EMAIL_ADDRESS supchan=config.IRC_SUPPORT_CHANNEL supserv=config.IRC_SUPPORT_SERVER %}

    {% if supmail and supchan %}

    	{% spaceless %}

        {% blocktrans %} contact us at <a href="mailto:{{ supmail }}">{{ supmail }}</a> or via <a href="irc://{{ supserv }}/{{ supchan }}"><code>{{ supchan }}</code> on <code>{{ supserv }}</code></a>{% endblocktrans %}

        {% if 'freenode' in supserv %}
        	{% blocktrans %} (try the <a href="http://webchat.freenode.net/?channels={{ supchan }}">web chat</a> if you do not have an IRC client installed){% endblocktrans %}
        {% endif %}

        {# This DOT is intended to close the sentence #}.

    	{% endspaceless %}

    {% elif supmail %}

        {% blocktrans %} contact us at <a href="mailto:{{ supmail }}">{{ supmail }}</a>.{% endblocktrans %}

    {% elif supchan %}

    	{% spaceless %}

        {% blocktrans %} contact us via <a href="irc://{{ supserv }}/{{ supchan}}"><code>{{ supchan }}</code> on <code>{{ supserv }}</code></a>{% endblocktrans %}

        {% if 'freenode' in supserv %}
        	{% blocktrans %} (try the <a href="http://webchat.freenode.net/?channels={{ supchan }}">web chat</a> if you do not have an IRC client installed){% endblocktrans %}
        {% endif %}

        {# This DOT is intended to close the sentence #}.

    	{% endspaceless %}

    {% else %}

        {% blocktrans %} er… How to say it… Well, I can only sympathize because the local administrator has not configured any support information. Sorry for you!{% endblocktrans %}

    {% endif %}

{% endwith %}

Include the webchat if the support channel is on freenode.
Include the webchat if the support channel is on freenode.