{% for channel in channels|sort(attribute='name', case_sensitive=False) %}
{% if channel.has_pending() %}
{% else %}
{% endif %}
{{channel.name}} (p)
{% if channel.automark not in [none, "pending"] %}
(automark: {{channel.automark}})
{% endif %}
{% if not channel.autorefresh %}
(autorefresh: no)
{% endif %}
{% endfor %}