Show file count on documents list (client)

This commit is contained in:
jendib 2013-08-22 22:24:14 +02:00
parent 870a44da0d
commit 6e3d2ea972
3 changed files with 3 additions and 4 deletions

View File

@ -1 +0,0 @@
- Show number of files on documents list (client)

View File

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

View File

@ -30,7 +30,7 @@
</thead>
<tbody>
<tr ng-click="viewDocument(document.id)" ng-repeat="document in documents">
<td>{{ document.title }} <span class="icon-share" ng-if="document.shared" tooltip="Shared"></span></td>
<td>{{ document.title }} ({{ document.file_count }})<span class="icon-share" ng-if="document.shared" tooltip="Shared"></span></td>
<td>{{ document.create_date | date: 'yyyy-MM-dd' }}</td>
<td class="hidden-phone cell-tags">
<div class="tags">