@* * 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: IndexedSeq[kafka.manager.ApiError] \/ Unit, 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( errs => errs.map(views.html.errors.onApiError(_, Some(errorLink))) , b => link(successLink))
}