Просмотр исходного кода

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

Henry Oswald 12 лет назад
Родитель
Сommit
fc02f99659

+ 10 - 7
services/web/app/views/user/restricted.jade

@@ -1,10 +1,13 @@
 extends ../layout
 
 block content
-
-	.container#loginBox
-		.row
-			.box.span3.offset4
-				.page-header
-					h1 Restricted
-
+	.content
+		.container
+			.row
+				.col-md-8.col-md-offset-2.text-center
+					.page-header
+						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!

+ 1 - 1
services/web/public/coffee/ide/dropbox/controllers/DropboxController.coffee

@@ -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