{% for key,messages in app.flashes %}
{% for message in messages %}
<script type="text/javascript">
$.notify('{{ message }}',{
element: 'body',
position: null,
type: '{{ key }}',
allow_dismiss: true,
newest_on_top: false,
globalPosition: 'top right',
showProgressbar: false,
placement: {
from: "top",
align: "right"
},
style: 'bootstrap',
className: '{{ key }}',
offset: 20,
spacing: 10,
z_index: 9999,
delay: 5000,
timer: 1000,
url_target: '_blank',
mouse_over: null,
animate: {
enter: 'animated fadeInDown',
exit: 'animated fadeOutUp'
},
onShow: null,
onShown: null,
onClose: null,
onClosed: null,
icon_type: 'class'
});
</script>
{% endfor %}
{% endfor %}