made restricted page like 404, also got dropbox progress bar going the other way

This commit is contained in:
Henry Oswald 2014-07-17 15:26:31 +01:00
parent c429bd1f44
commit fc02f99659
2 changed files with 11 additions and 8 deletions

View file

@ -1,10 +1,13 @@
extends ../layout
block content
.container#loginBox
.content
.container
.row
.box.span3.offset4
.col-md-8.col-md-offset-2.text-center
.page-header
h1 Restricted
h2 Restricted, sorry you don't have permission to load this page.
p
a(href="/")
i.fa.fa-arrow-circle-o-left
| Take me home!

View file

@ -34,7 +34,7 @@ define [
roundedMinsSinceLastPoll = Math.round(milisecondsSinceLastPoll / ONE_MIN_MILI)
$scope.dbState.minsTillNextPoll = POLLING_INTERVAL - roundedMinsSinceLastPoll
$scope.dbState.percentageLeftTillNextPoll = 100 - ((roundedMinsSinceLastPoll / POLLING_INTERVAL) * 100)
$scope.dbState.percentageLeftTillNextPoll = ((roundedMinsSinceLastPoll / POLLING_INTERVAL) * 100)
console.log $scope.dbState.percentageLeftTillNextPoll
$timeout calculatePollTime, 60 * 1000