aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/views/default/admin/overview
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-29 02:30:15 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-29 02:30:15 +0000
commit13a495664c79037557e6c5ea7c3e442be0523139 (patch)
tree35d83ec7008d10670fad0dca5e94e3b243beaad2 /mod/logbrowser/views/default/admin/overview
parent855b008013aad0426ab0332b040bddb033bb6af9 (diff)
downloadelgg-13a495664c79037557e6c5ea7c3e442be0523139.tar.gz
elgg-13a495664c79037557e6c5ea7c3e442be0523139.tar.bz2
Cleaned up the log browser plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7467 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/logbrowser/views/default/admin/overview')
-rw-r--r--mod/logbrowser/views/default/admin/overview/logbrowser.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/mod/logbrowser/views/default/admin/overview/logbrowser.php b/mod/logbrowser/views/default/admin/overview/logbrowser.php
index 5ff3df096..373e48a49 100644
--- a/mod/logbrowser/views/default/admin/overview/logbrowser.php
+++ b/mod/logbrowser/views/default/admin/overview/logbrowser.php
@@ -1,6 +1,8 @@
<?php
/**
- * Elgg log browser.
+ * Elgg log browser admin page
+ *
+ * @note The ElggObject this creates for each entry is temporary
*
* @package ElggLogBrowser
*/
@@ -43,23 +45,21 @@ $form = elgg_view('logbrowser/form', array(
// Get log entries
$log = get_system_log($user, "", "", "","", $limit, $offset, false, $timeupper, $timelower);
$count = get_system_log($user, "", "", "","", $limit, $offset, true, $timeupper, $timelower);
-$log_entries = array();
-foreach ($log as $l) {
- $tmp = new ElggObject();
- $tmp->subtype = 'logwrapper';
- $tmp->entry = $l;
- $log_entries[] = $tmp;
-}
+$table = elgg_view('logbrowser/table', array('log_entries' => $log));
-$list = elgg_view_entity_list($log_entries, $count, $offset, $limit, false, false);
+$nav = elgg_view('navigation/pagination',array(
+ 'offset' => $offset,
+ 'count' => $count,
+ 'limit' => $limit,
+));
// display admin body
$body = <<<__HTML
$title
$form
<div class="admin_settings log_browser radius8 clearfix">
- $list
+ $nav $table $nav
</div>
__HTML;