@import _root_.restrictions.RestrictionConfig @import _root_.restrictions.RestrictionChecker @import helper.CSRF @import conf.Config @(appConfig: Config, menu: Menu)(configs: Seq[RestrictionConfig])(implicit request: Security.AuthenticatedRequest[AnyContent, com.gu.googleauth.UserIdentity]) @main("Restrictions", request){

Restrictions


Disable or limit deploys of projects

Restrictions are principally designed to be used when there is a temporary issue with a project or environment such that deploying would be dangerous or potentially degrade the product. In addition they can be used when infrastructure security could be compromised by allowing any user to rollback or deploy a branch of their choice.

Further docs available here

Add new restriction

@if(configs.isEmpty) {
No restrictions.
} else { @for(config <- configs) { @defining(RestrictionChecker.isEditable(Some(config), request.user, appConfig.auth.superusers).isLeft) { deleteDisabled => } }
Last edited Project Name Stage Locked
@utils.DateFormats.Short.print(config.lastEdited) by @config.fullName @config.projectName @config.stage @if(config.editingLocked) { } Edit @helper.form(action = routes.Restrictions.delete(config.id.toString), Symbol("class") -> "form-make-inline") { @CSRF.formField }
}
}(appConfig, menu)