Files
cloudron-box/src/oidc_templates/interaction.ejs
T

81 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-03-13 17:11:03 +01:00
<!DOCTYPE html>
2023-03-11 17:22:27 +01:00
<html>
<head>
2023-03-13 17:11:03 +01:00
<meta charset="utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
2023-03-23 10:00:17 +01:00
<title>Authorize <%= name %></title>
2023-03-13 17:11:03 +01:00
<!-- Theme CSS -->
<link type="text/css" rel="stylesheet" href="/theme.css">
<!-- Fontawesome -->
<link type="text/css" rel="stylesheet" href="/3rdparty/fontawesome/css/all.css"/>
2023-03-11 17:22:27 +01:00
2023-03-13 17:11:03 +01:00
<!-- Bootstrap Core JavaScript -->
2023-03-21 15:20:30 +01:00
<script type="text/javascript" src="/3rdparty/js/jquery.min.js"></script>
2023-03-13 17:11:03 +01:00
<script type="text/javascript" src="/3rdparty/js/bootstrap.min.js"></script>
2023-03-11 17:22:27 +01:00
2023-04-27 16:20:32 +02:00
<style>
.card {
padding: 20px;
margin-bottom: 0;
max-width: 620px;
min-height: 100%;
}
.avatar {
margin-top: 20px;
}
@media(min-width:620px) {
.card {
margin-bottom: 15px;
margin-top: 100px;
min-height: auto;
}
.avatar {
margin-top: -84px
}
}
</style>
2023-03-11 17:22:27 +01:00
</head>
<body>
2023-03-13 17:11:03 +01:00
<div class="layout-root">
<div class="layout-content">
2023-04-27 16:20:32 +02:00
<div class="card">
2023-03-13 17:11:03 +01:00
<div class="row">
<div class="col-md-12" style="text-align: center;">
2023-04-27 16:20:32 +02:00
<img width="128" height="128" class="avatar" src="/api/v1/cloudron/avatar"/>
2023-03-13 17:11:03 +01:00
<br/>
2023-04-25 13:13:04 +02:00
<% if (hasAccess) { -%>
<h3>Authorize for <b><%= name %></b></h3>
<% } else { -%>
<h3>You do not have access to <b><%= name %></b></h3>
<% } -%>
2023-03-13 17:11:03 +01:00
</div>
</div>
<br/>
<div class="row">
2023-03-13 19:08:41 +01:00
<div class="col-md-12 text-center">
2023-04-25 13:13:04 +02:00
<% if (hasAccess) { -%>
2023-03-13 17:11:03 +01:00
<form method="post" action="<%= submitUrl %>">
<button class="btn btn-primary btn-outline" type="submit">Authorize</button>
</form>
2023-04-25 13:13:04 +02:00
<% } else { -%>
<a class="btn btn-primary btn-outline" href="<%= submitUrl %>">Continue</a>
<% } -%>
2023-03-13 17:11:03 +01:00
</div>
</div>
</div>
</div>
</div>
2023-03-11 17:22:27 +01:00
</body>
</html>