@* * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. *@ @import scalaz.{\/} @(theMenu: Html, crumbs: IndexedSeq[models.navigation.BreadCrumbs.BreadCrumbRendered], errorOrSuccess: kafka.manager.ApiError \/ Any, actionTitle: String, successLink: models.FollowLink, errorLink: models.FollowLink)(implicit messages: play.api.i18n.Messages, request:RequestHeader) @link(followLink: FollowLink) = { } @main(actionTitle, menu = theMenu, breadcrumbs = views.html.navigation.breadCrumbs(crumbs)) {

@actionTitle

@errorOrSuccess.fold( a => views.html.errors.onApiError(a, Some(errorLink)) , b => link(successLink))
}