{% load gravatar %}
{% load tz %}
{% load humanize %}
{% load gargoyle_tags %}
<tr>
    <td>
        {% if editable %}
        <label for="id_contact_{{ contact.id }}">
            <input id="id_contact_{{ contact.id }}" name="contact_{{ contact.id }}" class="input" type="checkbox">
        </label>
        {% endif %}
    </td>
    <td>
        <p><a href="{{ contact.get_absolute_url }}">
            <img class="img-circle"src="{% gravatar_url contact.preferred_email 25 %}">
            {{ contact.name }}
        </a></p>
        <p>{% if contact.last_contact %}Last contacted {{ contact.last_contact | localtime | naturaltime }}{% endif %}</p>
    </td>
    <td>
        <div style="margin: 5px 0;">
        {% for tag in contact.tags.all %}
        <a href="{% url "contacts-tagged" pk=tag.id %}"><span class="label label-default" style="background-color:{{ tag.corrected_color}};">{{ tag }}</span></a>
        {% endfor %}
        </div>
    </td>
    <td>
        <div class="text-right">
        {% ifnotswitch read_only_mode %}<a class="btn btn-default btn-sm" href="{% url "contacts-edit" pk=contact.id %}"><span class="glyphicon glyphicon-pencil"></span> Edit</a>{% endifnotswitch %}
        </div>
    </td>
</tr>
{% load gravatar %}
{% load tz %}
{% load humanize %}
{% load gargoyle_tags %}
<tr>
    <td>
        {% if editable %}
        <label for="id_contact_{{ contact.id }}">
            <input id="id_contact_{{ contact.id }}" name="contact_{{ contact.id }}" class="input" type="checkbox">
        </label>
        {% endif %}
    </td>
    <td>
        <a href="{{ contact.get_absolute_url }}">
            <img class="img-circle"src="{% gravatar_url contact.preferred_email 25 %}">
            {{ contact.name }}
        </a>
    </td>
    <td class="hidden-sm hidden-xs">
        {% for tag in contact.tags.all %}
        <small><a href="{% url "contacts-tagged" pk=tag.id %}"><span class="label label-default" style="background-color:{{ tag.corrected_color}};">{{ tag }}</span></a></small>
        {% endfor %}
    </td>
    <td>
        <small>{% if contact.last_contact %}<span class="glyphicon glyphicon-time"></span> {{ contact.last_contact | localtime | naturaltime }}{% endif %}</small>
    </td>
    <td>
        <div class="text-right">
        {% ifnotswitch read_only_mode %}<a class="btn btn-default btn-sm" href="{% url "contacts-edit" pk=contact.id %}"><span class="glyphicon glyphicon-pencil"></span> Edit</a>{% endifnotswitch %}
        </div>
    </td>
</tr>
Improve readability of contact rows
Improve readability of contact rows
