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): ?>
tabs; ?> @@ -23,14 +31,16 @@ if (! $this->compact): ?>

translate('This Service\'s Event History'); ?>

sortBox; ?> limiter; ?> - paginator; ?> + + translate('Scroll to the bottom of this page to load additional events'); ?> + filterEditor; ?>
- + peekAhead() as $event): ?> escape($event->output); @@ -100,6 +110,9 @@ if (! $this->compact): ?> ?>
+ getIteratorPosition() % $limit === 0): ?> + + escape($title); ?>
timestamp); ?> @@ -121,5 +134,17 @@ if (! $this->compact): ?>
hasResult()): ?> translate('No history events found matching the filter'); ?> +hasMore()): ?> +
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' + ) + ); ?>