Skip to content

Commit

Permalink
fix: target _blank
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Jul 27, 2024
1 parent 8e778db commit 78b1569
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@
{% if dataField.fieldType.displayOptions.imageAssetConfigIdentifier is defined and dataField.fieldType.displayOptions.imageAssetConfigIdentifier %}
{% set path = path('ems_asset_processor', {'hash':attribute(compareRawData, dataField.fieldType.name).sha1, 'processor': dataField.fieldType.displayOptions.imageAssetConfigIdentifier, 'type':attribute(compareRawData, dataField.fieldType.name).mimetype, 'name':attribute(compareRawData, dataField.fieldType.name).filename }) %}
{% endif %}
<a href="{{ path('ems.file.view', {'sha1':attribute(compareRawData, dataField.fieldType.name).sha1, 'type':attribute(compareRawData, dataField.fieldType.name).mimetype, 'name':attribute(compareRawData, dataField.fieldType.name).filename }) }}">
<a href="{{ path('ems.file.view', {'sha1':attribute(compareRawData, dataField.fieldType.name).sha1, 'type':attribute(compareRawData, dataField.fieldType.name).mimetype, 'name':attribute(compareRawData, dataField.fieldType.name).filename }) }}" target="_blank">
<del class="diffmod">
<img src="{{ path }}" class="img-responsive pad bg-red" alt="Image of the field {{ dataField.fieldType.name }}">
</del>
</a>
{% else %}
<div class="pad bg-red">
<strong class="">
<del class="diffmod"><a href="{{ path('ems.file.view', {'sha1':attribute(compareRawData, dataField.fieldType.name).sha1, 'type':attribute(compareRawData, dataField.fieldType.name).mimetype, 'name':attribute(compareRawData, dataField.fieldType.name).filename }) }}" class="text-gray">{{ attribute(compareRawData, dataField.fieldType.name).filename }}</a></del>
<del class="diffmod"><a href="{{ path('ems.file.view', {'sha1':attribute(compareRawData, dataField.fieldType.name).sha1, 'type':attribute(compareRawData, dataField.fieldType.name).mimetype, 'name':attribute(compareRawData, dataField.fieldType.name).filename }) }}" class="text-gray" target="_blank">{{ attribute(compareRawData, dataField.fieldType.name).filename }}</a></del>
</strong>
</div>
{% endif %}
Expand All @@ -120,7 +120,7 @@
{% if doCompare %}
<ins class="diffmod">
{% endif %}
<a href="{{ ems_asset_path(dataField.rawData) }}">
<a href="{{ ems_asset_path(dataField.rawData) }}" target="_blank">
<img src="{{ path }}" class="img-responsive pad {{ compareColor }}" alt="Image of the field {{ dataField.fieldType.name }}">
</a>
{% if doCompare %}
Expand All @@ -129,7 +129,7 @@
{% else %}
<div class="pad {{ compareColor }}">
<strong>
<a href="{{ path('ems.file.view', {'sha1':dataField.rawData.sha1, 'type':dataField.rawData.mimetype|default('application/bin'), 'name':dataField.rawData.filename|default('filename.bin') }) }}" class="{% if doCompare %}text-gray{% endif %}">
<a href="{{ path('ems.file.view', {'sha1':dataField.rawData.sha1, 'type':dataField.rawData.mimetype|default('application/bin'), 'name':dataField.rawData.filename|default('filename.bin') }) }}" class="{% if doCompare %}text-gray{% endif %}" target="_blank">
{% if doCompare %}
<ins class="diffmod">
{% endif %}
Expand Down

0 comments on commit 78b1569

Please sign in to comment.