{% if request.GET.back_type == 'history' and object.content_object %}
{% if request.GET.back_type == 'history' and object.content_object %}
<ahref="javascript:window.history.back()"title="{% trans 'Voltar para '%}{{object.content_object}}">{% trans 'Voltar para '%}{{object.content_object}}</a>
<ahref="javascript:window.history.back()"title="{% trans 'Voltar para '%}{{object.content_object}}">{% trans 'Voltar para '%}{{object.content_object}}</a>
{% elif object.content_object%}
{% elif object.content_object%}
<ahref="{% url object|urldetail_content_type object.content_object.pk %}"title="{% trans 'Voltar para '%}{{object.content_object}}">{% trans 'Voltar para '%}{{object.content_object}}</a>
<ahref="{% url object|urldetail_content_type:object.content_object object.content_object.pk %}"title="{% trans 'Voltar para '%}{{object.content_object}}">{% trans 'Voltar para '%}{{object.content_object}}</a>
{%else%}
{%else%}
<ahref="{% url 'sapl.compilacao:ta_detail' object.pk %}">{% trans 'Início' %}</a>
<ahref="{% url 'sapl.compilacao:ta_detail' object.pk %}">{% trans 'Início' %}</a>