Make a fancy badge

This commit is contained in:
Oliver Walters 2020-03-22 19:57:51 +11:00
parent 90aa205057
commit 82be9db3df

View File

@ -5,7 +5,11 @@
<a href="{% url 'po-detail' order.id %}">{% trans "Items" %}</a> <a href="{% url 'po-detail' order.id %}">{% trans "Items" %}</a>
</li> </li>
<li{% if tab == 'attachments' %} class='active'{% endif %}> <li{% if tab == 'attachments' %} class='active'{% endif %}>
<a href="{% url 'po-attachments' order.id %}">{% trans "Attachments" %}</a> <a href="{% url 'po-attachments' order.id %}">{% trans "Attachments" %}
{% if order.attachments.count > 0 %}
<span class='badge'>{{ order.attachments.count }}</span>
{% endif %}
</a>
</li> </li>
<li{% ifequal tab 'notes' %} class='active'{% endifequal %}> <li{% ifequal tab 'notes' %} class='active'{% endifequal %}>
<a href="{% url 'po-notes' order.id %}">{% trans "Notes" %}{% if order.notes %} <span class='glyphicon glyphicon-small glyphicon-info-sign'></span>{% endif %}</a> <a href="{% url 'po-notes' order.id %}">{% trans "Notes" %}{% if order.notes %} <span class='glyphicon glyphicon-small glyphicon-info-sign'></span>{% endif %}</a>