mirror of
https://github.com/sismics/docs.git
synced 2024-11-15 18:57:56 +01:00
Show file count on documents list (client)
This commit is contained in:
parent
870a44da0d
commit
6e3d2ea972
@ -1 +0,0 @@
|
||||
- Show number of files on documents list (client)
|
@ -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.
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user