diff --git a/modules/Cockpit/Helper/Revisions.php b/modules/Cockpit/Helper/Revisions.php index 8dc15431a..93815291f 100644 --- a/modules/Cockpit/Helper/Revisions.php +++ b/modules/Cockpit/Helper/Revisions.php @@ -23,12 +23,16 @@ public function count($id) { return $this->storage->count('cockpit/revisions', ['_oid' => $id]); } - public function getList($id) { + public function getList($id, $limit = 50, $skip = 0) { - return $this->storage->find('cockpit/revisions', [ + $options = [ 'filter' => ['_oid' => $id], - 'sort' => ['_created' => -1] - ])->toArray(); + 'sort' => ['_created' => -1], + 'limit' => $limit, + 'skip' => $skip + ]; + + return $this->storage->find('cockpit/revisions', $options)->toArray(); } public function add($id, $data, $meta = null, $creator = null) { diff --git a/modules/Cockpit/views/restadmin/index.php b/modules/Cockpit/views/restadmin/index.php index bd29b151b..5d9f99749 100644 --- a/modules/Cockpit/views/restadmin/index.php +++ b/modules/Cockpit/views/restadmin/index.php @@ -17,7 +17,7 @@
- @lang('Share with caution') + @lang('Share with caution')
@@ -38,10 +38,10 @@
- +
- +