Commit 0b1f1e75 authored by joansp's avatar joansp
Browse files

Ping Backend ng-cloack final version

parent 98b882c9
......@@ -247,6 +247,10 @@
// list messages
function messagesCrtl($scope, $http, request) {
$http.get('/pingbackend.json').then(function(response) {
$scope.pingbe_fail = !response.data;
});
$http.get('/messages.json').then(function(response) {
$scope.list_message= response.data;
......
<div class="panel-body">
<div class="col-lg-12">
<div ng-show="pingbe_fail" class="alert alert-danger" ng-cloak>
<strong>Error!</strong> Backend no available!
</div>
<table class="table table-striped">
<thead>
<tr>
......
<div ng-repeat="machine in list_bases">
<div class="col-sm-4">
<div class="panel panel-success machine">
<div class="panel-body">
<div ng-show="pingbe_fail" class="alert alert-danger" ng-cloak>
<strong>Error!</strong> Backend no available!
</div>
<div ng-repeat="machine in list_bases">
<div class="col-sm-4">
<div class="panel panel-success machine">
<div class="panel-heading">
<h3 class="panel-title">{{machine.name}}</h3><br>
<img id="screensh" src="/img/screenshots/{{machine.id}}.png">
</div>
<div class="panel-body machine-card">
<a type="button" class="btn btn-success" href="/machine/clone/{{machine.id}}.html"><strong>&nbsp;<i class="fa fa-play" aria-hidden="true"></i>&nbsp;Start</strong></a>
</div>
</div>
<div class="panel-heading">
<h3 class="panel-title">{{machine.name}}</h3><br>
<img id="screensh" src="/img/screenshots/{{machine.id}}.png">
</div>
<div class="panel-body machine-card">
<a type="button" class="btn btn-success" href="/machine/clone/{{machine.id}}.html"><strong>&nbsp;<i class="fa fa-play" aria-hidden="true"></i>&nbsp;Start</strong></a>
</div>
</div>
</div>
</div>
</div>
......@@ -11,18 +11,15 @@
<!--MACHINES SELECTION-->
<div class="page-header" ng-controller="bases">
<div ng-show="pingbe_fail" class="alert alert-danger" ng-cloak>
<strong>Error!</strong> Backend no available!
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<h2>Choose a Machine to Start</h2>
</div>
<div class="panel-body">
<sol-show-cardsmachines></sol-show-cardsmachines>
</div>
</div>
</div>
</div>
......
......@@ -6,10 +6,6 @@
<div ng-controller="messages">
%= include 'bootstrap/navigation'
<div id="page-wrapper">
<div ng-hide="{{pingbe}}" class="alert alert-danger">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<strong>Error!</strong> Backend no available!
</div>
<!--BASES AND DOMAINS LIST-->
<div class="page-header">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment