diff --git a/modules/monitoring/application/views/scripts/service/history.phtml b/modules/monitoring/application/views/scripts/service/history.phtml
index 49c5f9993..75e0e608f 100644
--- a/modules/monitoring/application/views/scripts/service/history.phtml
+++ b/modules/monitoring/application/views/scripts/service/history.phtml
@@ -16,6 +16,14 @@ function contactsLink($match, $view) {
$self = $this;
+$url = $this->url();
+$limit = (int) $url->getParam('limit', 25);
+if (! $url->hasParam('page') || ($page = (int) $url->getParam('page')) < 1) {
+ $page = 1;
+}
+
+$history->limit($limit * $page);
+
if (! $this->compact): ?>
-
+ peekAhead() as $event): ?>
escape($event->output);
@@ -100,6 +110,9 @@ if (! $this->compact): ?>
?>
+ getIteratorPosition() % $limit === 0): ?>
+
+
= $this->escape($title); ?>
= date('d.m. H:i', $event->timestamp); ?>
@@ -121,5 +134,17 @@ if (! $this->compact): ?>
|
hasResult()): ?>
= $this->translate('No history events found matching the filter'); ?>
+hasMore()): ?>
+
= $this->qlink(
+ $this->translate('Load More'),
+ $url->setAnchor('page-' . ($page + 1)),
+ array(
+ 'page' => $page + 1,
+ ),
+ array(
+ 'id' => 'load-more',
+ 'class' => 'pull-right load-more button-like'
+ )
+ ); ?>