1<span data-toggle="tooltip"
2    {% if buildrequest.brtarget_set.all.count > 1 %}
3        title="Targets:
4        {% for target in buildrequest.brtarget_set.all %}
5            {% if target.task %}
6                {{target.target}}:{{target.task}}
7            {% else %}
8                {{target.target}}
9            {% endif %}
10        {%endfor%}"
11    {%endif%}>
12    {% if buildrequest.brtarget_set.all.0.task %}
13        {{buildrequest.brtarget_set.all.0.target}}:{{buildrequest.brtarget_set.all.0.task}}
14    {% else %}
15         {{buildrequest.brtarget_set.all.0.target}}
16    {% endif %}
17    {% if buildrequest.brtarget_set.all.count > 1 %}
18        (+ {{buildrequest.brtarget_set.all.count|add:"-1"}})
19    {% endif %}
20</span>
21