aboutsummaryrefslogtreecommitdiff
path: root/app/views/fragments/flashBanner.scala.html
blob: 41766f9bdfd1ccefa2f9658f666dca31b4732433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@()(implicit flash:Flash)

@displayFlash(flashType: String) = {
	@for(message <- flash.get(flashType)) {
		<div class="@flashType">
			@message
		</div>
	}
}

@for(flashType <- List("success", "info", "warning", "error")) {
	@displayFlash(flashType)
}