-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error when indexing ImagePagepart
- Loading branch information
Kristof Jochmans
committed
May 20, 2014
1 parent
381e46a
commit 717e12f
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{% if resource.media is not empty %} | ||
<div class="image-pp"> | ||
{%- if resource.link is defined and resource.link != "" -%} | ||
<a href="{{ resource.link }}" {% if resource.openinnewwindow %}target="_blank"{% endif %}><img src="{{ app.request.schemeandhttphost ~ app.request.basePath ~ asset(resource.media.url) }}" alt="{{ resource.alttext }}" /></a> | ||
{%- else -%} | ||
<img src="{{ app.request.schemeandhttphost ~ app.request.basePath ~ asset(resource.media.url) }}" alt="{{ resource.alttext }}" /> | ||
{%- endif -%} | ||
{% set imgUrl = '' %} | ||
{% if app.request %} | ||
{% set imgUrl = app.request.schemeandhttphost ~ app.request.basePath ~ asset(resource.media.url) %} | ||
{% endif %} | ||
{% if resource.link is defined and resource.link != "" %} | ||
<a href="{{ resource.link }}" {% if resource.openinnewwindow %}target="_blank"{% endif %}><img src="{{ imgUrl }}" alt="{{ resource.alttext }}" /></a> | ||
{% else %} | ||
<img src="{{ imgUrl }}" alt="{{ resource.alttext }}" /> | ||
{% endif %} | ||
</div> | ||
{% endif %} |