Commit a77a4f1e authored by Hervé Ménager's avatar Hervé Ménager

improve unavailability message

parent b0cf35b2
......@@ -83,8 +83,9 @@
</nav>
</header>
<div ng-show="message" class="alert alert-danger ng-hide" role="alert">{{message}}</div>
<div ng-show="unavailable" class="curtain-message" role="alert">{{unavailable}}</div>
<!-- Add your site or application content here -->
<div class="container-fluid fade" ng-view="" autoscroll="true">
<div ng-show="!unavailable" class="container-fluid fade" ng-view="" autoscroll="true">
</div>
......
......@@ -23,7 +23,7 @@ angular.module('biowebEvolApp', [
return {
'responseError': function (rejection) {
if(rejection.status===503){
$rootScope.message = "This website is currently unavailable";
$rootScope.unavailable = "This website is currently unavailable";
}
}
}
......
......@@ -141,3 +141,15 @@
.navbar-top {
padding-top: 50px;
}
.curtain-message{
top: 0%;
height: 100%;
width: 100%;
z-index: 100;
text-align: center;
vertical-align: middle;
padding-top: 10%;
background-color: inherit;
position: absolute;
}
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