<span class="must_reload"></span>
<h2>{{object_data.model_name.title}}</h2>

<div>
    {% for f, v, iter in object_data.fields_and_values %}
        <p><span class="field_label">{{ f.name.capitalize }}:</span>
        {% if iter %}
            {% for val, link in v %}
                {% if link and link.can_read %}
                    <span class="field_value"><a href="{{ link.view_url }}">{{ val }}</a></span>
                {% else %}
                    <span class="field_value">{{ val }}</span>
                {% endif %}
            {% endfor %}
        {% else %}
            {% if v.1 and v.1.can_read %}
                <span class="field_value"><a href="{{ v.1.view_url }}">{{ v.0 }}</a></span>
            {% else %}
                <span class="field_value">{{ v.0 }}</span>
            {% endif %}
        {% endif %}
        </p>
    {% endfor %}
</div>
{% if object_data.can_write %}
<div>
    {% for a, u in object_data.instance_actions %}{% if a.action.name != 'view' %}
        <a href="{{ u }}" class="btn btn-default"><span class="fa {{ a.action.icon }}">{{ a.action.verbose_name.capitalize }}</span></a>
    {% endif %}{% endfor %}
</div>
{% endif %}
