Show background image and link only if specified

This commit is contained in:
M.Ravi 2017-10-19 16:23:28 +02:00
parent c448562384
commit e7c7f6f73a
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<div class="intro-header" style="background:url({{ image.url }}) no-repeat center center; background-size: cover; background-position: left; background-color: rgb(118, 140, 163); background-attachment: fixed; flex-direction: column; align-items: flex-end; justify-content: space-between; padding-top: 70px;" id="home">
<div class="price-tag-container">
<a href="{{ object.price_tag_url }}"><div style="background:url({{ object.price_tag_image.url }}) no-repeat center center; background-size: cover;" class="price-tag"></div></a>
{% if object.price_tag_url %}<a href="{{ object.price_tag_url }}">{% endif %}{% if object.price_tag_image %}<div style="background:url({{ object.price_tag_image.url }}) no-repeat center center; background-size: cover;" class="price-tag"></div>{% endif %}{% if object.price_tag_url %}</a>{% endif %}
</div>
<div class="high-speed">
<div class="high-speed-border"></div>