Skip to content

Commit

Permalink
Fix purchase visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kissifrot committed Jun 18, 2018
1 parent aacd451 commit 360c1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AppBundle/Resources/views/gift/show.html.twig
Expand Up @@ -15,7 +15,7 @@
{% if gift.imageUrl is not empty %}<p><img src="{{ gift.imageUrl }}" alt="Image" class="img-fluid" style="max-height: 500px"></p>{% endif %}
{% if gift.moreDetailUrl is not empty %}<p><a href="{{ gift.moreDetailUrl }}" target="_blank">{{ 'gift.more_details.text'|trans }}</a></p>{% endif %}
{% if gift.moreDetail is not empty %}<p>{{ gift.moreDetail }}</p>{% endif %}
{% if gift.bought %}
{% if gift.bought and not is_granted('OWNER', gift.category.list) %}
<p>{{ 'gift.bought_by.text'|trans({ '%purchaseDate%':gift.purchaseDate|date('d/m/Y') , '%buyerName%': gift.buyer.name})|raw }}</p>
{% if gift.purchaseComment is not empty %}
<p>{{ 'gift.comment.text'|trans }}</p> <blockquote class="blockquote">{{ gift.purchaseComment }}</blockquote>
Expand Down

0 comments on commit 360c1ad

Please sign in to comment.