9 lines
350 B
HTML
9 lines
350 B
HTML
{% set image = record.attachments.get(this.image) %}
|
|
<div class="banner{% if this.class %} banner-{{ this.class }}{% endif %}" style="background-image: url({{ image|url
|
|
}}); height: {{ {
|
|
'full': image.height,
|
|
'half': image.height / 2,
|
|
}.get(this.height, this.height) }}px">{% if this.contents %}
|
|
{{ this.contents }}
|
|
{% endif %}</div>
|