mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 22:07: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() {
|
setInterval(function() {
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
Restangular.one('app/log').get({
|
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,
|
limit: 10,
|
||||||
level: 'ERROR'
|
level: 'ERROR'
|
||||||
}).then(function(data) {
|
}).then(function(data) {
|
||||||
@ -32,7 +32,7 @@ App.controller('Navigation', function($scope, $http, $state, $rootScope, User, R
|
|||||||
$scope.lastLogCheck = new Date().getTime();
|
$scope.lastLogCheck = new Date().getTime();
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
}, 10000);
|
}, 60000);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigate to error logs.
|
* Navigate to error logs.
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-click="viewDocument(document.id)" ng-repeat="document in documents">
|
<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>{{ document.create_date | date: 'yyyy-MM-dd' }}</td>
|
||||||
<td class="hidden-phone cell-tags">
|
<td class="hidden-phone cell-tags">
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
|
Loading…
Reference in New Issue
Block a user