From 6e3d2ea97268bdfc01a2112ecdb23904187b11b2 Mon Sep 17 00:00:00 2001 From: jendib Date: Thu, 22 Aug 2013 22:24:14 +0200 Subject: [PATCH] Show file count on documents list (client) --- docs-parent/TODO | 1 - docs-web/src/main/webapp/app/docs/controller/Navigation.js | 4 ++-- docs-web/src/main/webapp/partial/docs/document.html | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs-parent/TODO b/docs-parent/TODO index a6640a3d..e69de29b 100644 --- a/docs-parent/TODO +++ b/docs-parent/TODO @@ -1 +0,0 @@ -- Show number of files on documents list (client) \ No newline at end of file diff --git a/docs-web/src/main/webapp/app/docs/controller/Navigation.js b/docs-web/src/main/webapp/app/docs/controller/Navigation.js index 43858a9a..7838ef4f 100644 --- a/docs-web/src/main/webapp/app/docs/controller/Navigation.js +++ b/docs-web/src/main/webapp/app/docs/controller/Navigation.js @@ -16,7 +16,7 @@ App.controller('Navigation', function($scope, $http, $state, $rootScope, User, R setInterval(function() { $scope.$apply(function() { Restangular.one('app/log').get({ - // Error count will be wrong if there is more than 10 errors in 10 seconds + // Error count will be wrong if there is more than 10 errors in 60 seconds limit: 10, level: 'ERROR' }).then(function(data) { @@ -32,7 +32,7 @@ App.controller('Navigation', function($scope, $http, $state, $rootScope, User, R $scope.lastLogCheck = new Date().getTime(); }); }) - }, 10000); + }, 60000); /** * Navigate to error logs. diff --git a/docs-web/src/main/webapp/partial/docs/document.html b/docs-web/src/main/webapp/partial/docs/document.html index 0b23b2c0..5ebb4555 100644 --- a/docs-web/src/main/webapp/partial/docs/document.html +++ b/docs-web/src/main/webapp/partial/docs/document.html @@ -30,7 +30,7 @@ - {{ document.title }} + {{ document.title }} ({{ document.file_count }}) {{ document.create_date | date: 'yyyy-MM-dd' }}