<template name="messages">
	{{#if hasMessages}}
		<div class="messages">
			{{#each messages}}
				{{> message}}
			{{/each}}
		</div>
	{{/if}}
</template>

<template name="message">
	<div class="alert alert-{{type}} alert-dismissible" role="alert">
		{{message}}
		<button type="button" class="close"
			aria-label="{{mf 'message.close' 'Close message'}}"
			data-dismiss="alert">
			<span aria-hidden="true">&times;</span>
		</button>
	</div>
</template>
