app/views/admin_main.scala.html (24 lines of code) (raw):
@(identity: Option[com.gu.pandomainauth.model.User] = None, stage: String, isDev: Boolean, bundlePath: String)
@import story_packages.switchboard.SwitchManager
<!DOCTYPE html>
<html>
<head>
<title>Story Packages Editor</title>
@templates.meta()
<script src="/assets/jspm_packages/system.js"></script>
<script src="/assets/js/jspm-config.js"></script>
@if(!isDev) {
<script src="@{bundlePath}"></script>
}
<script>System.import('setup');</script>
</head>
<body class="mainFlexContainer is-authed" data-bind="css: {pending: pending}">
@if(SwitchManager.getStatus("story-packages-disable")) {
<span class="message message--important">Temporarily disabled. Please try again shortly.</span>
} else {
@templates.header(stage, identity, isDev)
@templates.vertical_layout()
@templates.main()
}
</body>
</html>