app/views/revoke.scala.html (35 lines of code) (raw):
@import com.gu.janus.model.{AwsAccount, JanusData}
@import com.gu.googleauth.UserIdentity
@import play.api.Mode
@(accounts: List[AwsAccount], user: UserIdentity, janusData: JanusData)(implicit req: RequestHeader, mode: Mode, assetsFinder: AssetsFinder)
@main("Revoke", Some(user), janusData) {
<div class="container">
<div class="row">
<div class="col s12">
<h1 class="header orange-text">Revoke AWS account access</h1>
<div class="card-panel yellow lighten-4">
<i class="material-icons">warning</i>
Use this feature if Janus credentials have been compromised
</div>
<p>
Select the account with compromised credentials. You will then be prompted for confirmation.
</p>
</div>
</div>
<div class="collection">
@for(account <- accounts.sortBy(_.name)){
<a class="collection-item" href="/revoke-request?accountId=@account.authConfigKey">
@account.name
</a>
}
</div>
<div class="row">
<div class="col s12">
<p>
If you'd like to reset an AWS account that has already been disabled,
<a href="/revoke-confirmation">consult the instructions</a>.
</p>
</div>
</div>
</div>
}