{% for node in nodes %}
  1. {% if forloop.last and colored and node.color %} {% if linkify %} {% with badge_url=node.get_absolute_url %} {% badge node hex_color=node.color url=badge_url %} {% endwith %} {% else %} {% badge node hex_color=node.color %} {% endif %} {% elif linkify %} {{ node }} {% else %} {{ node }} {% endif %}
  2. {% endfor %}