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
|
|
|
|
2023-05-11 12:15:10 +02:00
|
|
|
<link id="favicon" type="image/png" rel="icon" href="/api/v1/cloudron/avatar">
|
|
|
|
|
<link rel="apple-touch-icon" href="/api/v1/cloudron/avatar">
|
|
|
|
|
<link rel="icon" href="/api/v1/cloudron/avatar">
|
|
|
|
|
|
2023-03-13 17:11:03 +01:00
|
|
|
<!-- Theme CSS -->
|
|
|
|
|
<link type="text/css" rel="stylesheet" href="/theme.css">
|
|
|
|
|
|
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-06-20 19:58:09 +02:00
|
|
|
<% if (hasAccess) { -%>
|
|
|
|
|
<form id="submitForm" method="post" action="<%= submitUrl %>">
|
|
|
|
|
<!-- <button type="submit"></button> -->
|
|
|
|
|
</form>
|
|
|
|
|
<% } else { -%>
|
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-05-12 13:32:43 +02:00
|
|
|
<img width="128" height="128" class="avatar" src="<%= iconUrl %>"/>
|
2023-03-13 17:11:03 +01:00
|
|
|
<br/>
|
2023-04-25 13:13:04 +02:00
|
|
|
<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
|
|
|
<a class="btn btn-primary btn-outline" href="<%= submitUrl %>">Continue</a>
|
2023-03-13 17:11:03 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-08-11 13:36:46 +02:00
|
|
|
|
|
|
|
|
<footer class="text-center">
|
|
|
|
|
<span class="text-muted"><%- footer %></span>
|
|
|
|
|
</footer>
|
2023-03-13 17:11:03 +01:00
|
|
|
</div>
|
2023-06-20 19:58:09 +02:00
|
|
|
<% } -%>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
<% if (hasAccess) { -%>
|
|
|
|
|
document.getElementById('submitForm').submit();
|
|
|
|
|
<% } -%>
|
|
|
|
|
|
|
|
|
|
</script>
|
2023-03-11 17:22:27 +01:00
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|