@import prism.BakeUsage @import views.html.helper.CSRF @(bakeId: BakeId, usages: Seq[BakeUsage], bakeDeletionFrequencyMinutes: Int)(implicit request: RequestHeader) @simpleLayout("AMIgo"){ @if(usages.isEmpty) {

Really delete @bakeId.recipeId bake @bakeId.buildNumber?

Confirm delete

Note that this will schedule the deletion of all encrypted copies of this bake within the next @bakeDeletionFrequencyMinutes minutes.

@helper.form(routes.BakeController.deleteBake(bakeId.recipeId, bakeId.buildNumber)) { @CSRF.formField }
} else {

Bake @bakeId.buildNumber of recipe @bakeId.recipeId still has usages

Can't be deleted
This bake still has usages and cannot be deleted. You can review the usages here.
} }