Skip to content
Snippets Groups Projects
Unverified Commit b814378d authored by Luke Murphy's avatar Luke Murphy
Browse files

Open new tabs for new items.

This is a hack to preserve filters.
parent 71d92899
No related branches found
No related tags found
1 merge request!93Filter by tags.
{% if request %}
{% if record.body %}
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.body }}</a>
<a target="_blank" href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.body }}</a>
{% else %}
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'><p class="missing-body"> Missing text </p></a>
<a target="_blank" href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'><p class="missing-body"> Missing text </p></a>
{% endif %}
{% else %}
{{ record.body }}
......
{% if request %}
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.translation }}</a>
<a target="_blank" href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.translation }}</a>
{% else %}
{{ record.translation }}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment