fradrive/templates/widgets/modal.hamlet
2018-04-16 21:10:56 +02:00

9 lines
370 B
Plaintext

<div .modal.js-modal #modal-#{modalId} data-trigger=#{modalTrigger} data-closeable=true>
$# primitive way of checking if this is supposed to be add a placeholder for async data.
$# modalContent is 'placeholder' if there should be a placeholder only.
$# 'placeholder' has length 11.
$if 11 == length modalContent
<div .replace-me>
$else
#{modalContent}