Skip to content

Commit

Permalink
fix export PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbey committed Oct 1, 2015
1 parent 27eed1f commit 5dcaead
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@
{% endif %}

{% set k = 0 %}
{% for proposition in item.propositions if proposition.media.mediaPurpose.name != "reponse" %}
{% if k == 0 %}
<strong>Proposition(s)</strong> :<br/>
{% endif %}
{% for proposition in item.propositions %}
{% if proposition.media.mediaPurpose is null or (proposition.media.mediaPurpose is not null and proposition.media.mediaPurpose.name != "reponse") %}
{% if k == 0 %}
<strong>Proposition(s)</strong> :<br/>
{% endif %}
<div class="col-xs-3 panel panel-default">
<div class="panel-body">
{{ k+1 }}
Expand All @@ -157,7 +158,8 @@
{{ macros.displayMedia(proposition.media) }}
</div>
</div>
{% set k = k+1 %}
{% set k = k+1 %}
{% endif %}
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit 5dcaead

Please sign in to comment.