{% load perm_tags %}
{% load base_filters %}
{% load i18n %}

<tr>
                <td colspan="6">
                    <div style="background-color: {{ obj_color }}; height: 5px;">&nbsp;</div>
                </td>
            </tr>
            
            <tr>
                <td>
                
                    <a href="{% url invoice.view invoice.pk %}">{{ invoice.pk}}</a>  
                    {% if invoice.estimate  %}
                        {% if 'cancel' in invoice.status_detail %}
                            <span class="body_copy_yellow">{% trans "CANCELLED" %}</span>
                        {% else %}
                            {% trans "EST" %}
                         {% endif %}
                    {% else %}
                        <a href="{% url invoice.view invoice.pk %}" class="links"><img src="{{ STATIC_URL }}images/icons/tendered65x12.gif" border="0" width="65"  height="12" alt="Tendered {{ invoice.tender_date|date:'N j, Y h:i a'}}"></a>&nbsp;
                    {% endif %} 
                    {% if request.user.is_superuser %}
                        <a href="{% url invoice.detail invoice.pk %}" class="links">
                        <img src="{{ STATIC_URL }}images/icons/accounting12x12.gif"
                               border="0" width="12" height="12" alt="View Accounting Entries"></a>
                     {% endif %}
                </td>
            
                {# createor username #}
                <td>
                    {% if invoice.creator.username %}
                        <a href="{% url profile invoice.creator.username %}">{{ invoice.creator.username }}</a>
                    {% else %}
                        &nbsp;
                     {% endif %}
                </td>
            
                {# create_dt  #}
                <td colspan="3">
                     {% if invoice.create_dt %}
                       {{ invoice.create_dt|date:'long'}} 
                    {% else  %}
                        &nbsp;
                     {% endif %}
                </td>
            
                {# total #}
                <td>
	                {% if not invoice.estimate and invoice.total > 0  %}
	                   {{ invoice.total|format_currency }}
	                {% else %}
	                    ----
	                {% endif %}
                </td>
            
            </tr>
               
            <tr>
            <td colspan="6"><div style="background-color: #333; height: 2px;">&nbsp;</div></td>
            </tr>
