2015-07-20 00:09:47 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html ng-app="Application" ng-controller="Controller">
|
|
|
|
|
<head>
|
|
|
|
|
<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" />
|
|
|
|
|
|
|
|
|
|
<title> Cloudron Error </title>
|
|
|
|
|
|
2017-01-06 17:57:22 +01:00
|
|
|
<link id="favicon" href="/api/v1/cloudron/avatar" rel="icon" type="image/png">
|
|
|
|
|
|
2015-08-25 21:59:01 -07:00
|
|
|
<!-- Theme CSS -->
|
|
|
|
|
<link href="theme.css" rel="stylesheet" type="text/css">
|
|
|
|
|
|
2015-07-20 00:09:47 -07:00
|
|
|
<!-- external fonts and CSS -->
|
|
|
|
|
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
|
|
|
|
|
|
|
|
|
<!-- jQuery-->
|
|
|
|
|
<script src="3rdparty/js/jquery.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- Bootstrap Core JavaScript -->
|
|
|
|
|
<script src="3rdparty/js/bootstrap.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- Angularjs scripts -->
|
|
|
|
|
<script src="3rdparty/js/angular.min.js"></script>
|
|
|
|
|
<script src="3rdparty/js/angular-loader.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
// create main application module
|
|
|
|
|
var app = angular.module('Application', []);
|
|
|
|
|
|
|
|
|
|
app.controller('Controller', ['$scope', '$http', function ($scope, $http) {
|
|
|
|
|
$scope.errorMessage = '';
|
2016-01-19 11:20:32 +01:00
|
|
|
$scope.statusOk = false;
|
2015-07-20 00:09:47 -07:00
|
|
|
|
2016-01-19 11:20:32 +01:00
|
|
|
// try to fetch the cloudron status
|
|
|
|
|
$http.get('/api/v1/cloudron/status').success(function(data, status) {
|
|
|
|
|
if (status !== 200 || typeof data !== 'object') return console.error(status, data);
|
|
|
|
|
$scope.statusOk = true;
|
|
|
|
|
}).error(function (data, status) {
|
|
|
|
|
console.error(status, data);
|
|
|
|
|
$scope.statusOk = false;
|
|
|
|
|
});
|
|
|
|
|
|
2015-07-20 00:09:47 -07:00
|
|
|
var search = window.location.search.slice(1).split('&').map(function (item) { return item.split('='); }).reduce(function (o, k) { o[k[0]] = k[1]; return o; }, {});
|
|
|
|
|
|
|
|
|
|
$scope.errorCode = search.errorCode || 0;
|
|
|
|
|
$scope.errorContext = search.errorContext || '';
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body class="status-page">
|
|
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
<div class="content">
|
2015-07-28 14:03:45 +02:00
|
|
|
<img src="/api/v1/cloudron/avatar" onerror="this.src = '/img/logo_inverted_192.png'"/>
|
2015-10-20 12:55:30 +02:00
|
|
|
<h1> Cloudron </h1>
|
2015-07-20 00:09:47 -07:00
|
|
|
|
|
|
|
|
<div ng-show="errorCode == 0">
|
|
|
|
|
<h3> <i class="fa fa-frown-o fa-fw text-danger"></i> Something has gone wrong </h3>
|
2016-01-19 11:20:32 +01:00
|
|
|
<span ng-show="statusOk">Please try again reloading the page <a href="/">here</a>.</span>
|
2015-07-20 00:09:47 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div ng-show="errorCode == 1">
|
|
|
|
|
<h3> <i class="fa fa-frown-o fa-fw text-danger"></i> Cloudron is not setup </h3>
|
|
|
|
|
Please use the setup link you received via mail.
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div ng-show="errorCode == 2">
|
|
|
|
|
<h3> <i class="fa fa-frown-o fa-fw text-danger"></i> Setup requires a setupToken in the query </h3>
|
|
|
|
|
Please use the setup link you received via mail.
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div ng-show="errorCode == 3">
|
|
|
|
|
<h3> <i class="fa fa-frown-o fa-fw text-danger"></i> Setup requires an email in the query </h3>
|
|
|
|
|
Please use the setup link you received via mail.
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2017-01-26 13:20:00 -08:00
|
|
|
|
|
|
|
|
<footer class="text-center">
|
|
|
|
|
<span class="text-muted">©2017 <a href="https://cloudron.io" target="_blank">Cloudron</a></span>
|
|
|
|
|
<span class="text-muted"><a href="https://twitter.com/cloudron_io" target="_blank">Twitter <i class="fa fa-twitter"></i></a></span>
|
|
|
|
|
<span class="text-muted"><a href="https://chat.cloudron.io" target="_blank">Chat <i class="fa fa-comments"></i></a></span>
|
|
|
|
|
</footer>
|
|
|
|
|
|
2015-07-20 00:09:47 -07:00
|
|
|
</body>
|
|
|
|
|
</html>
|