aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/logbrowser/start.php2
-rw-r--r--mod/logbrowser/views/default/admin/utilities/logbrowser.php9
-rw-r--r--mod/logbrowser/views/default/logbrowser/css.php51
-rw-r--r--mod/logbrowser/views/default/logbrowser/form.php13
-rw-r--r--mod/logbrowser/views/default/logbrowser/table.php2
5 files changed, 15 insertions, 62 deletions
diff --git a/mod/logbrowser/start.php b/mod/logbrowser/start.php
index 4e44cd0b8..dace1a68e 100644
--- a/mod/logbrowser/start.php
+++ b/mod/logbrowser/start.php
@@ -12,8 +12,6 @@ elgg_register_event_handler('init', 'system', 'logbrowser_init');
*/
function logbrowser_init() {
- elgg_extend_view('css/admin', 'logbrowser/css');
-
elgg_register_plugin_hook_handler('register', 'menu:user_hover', 'logbrowser_user_hover_menu');
elgg_add_admin_menu_item('logbrowser', elgg_echo('logbrowser'), 'utilities');
diff --git a/mod/logbrowser/views/default/admin/utilities/logbrowser.php b/mod/logbrowser/views/default/admin/utilities/logbrowser.php
index 67fdaa553..dadc6cda3 100644
--- a/mod/logbrowser/views/default/admin/utilities/logbrowser.php
+++ b/mod/logbrowser/views/default/admin/utilities/logbrowser.php
@@ -7,7 +7,7 @@
* @package ElggLogBrowser
*/
-$limit = get_input('limit', 40);
+$limit = get_input('limit', 20);
$offset = get_input('offset');
$search_username = get_input('search_username');
@@ -54,11 +54,10 @@ $nav = elgg_view('navigation/pagination',array(
// display admin body
$body = <<<__HTML
-$title
$form
-<div class="admin_settings log_browser radius8 clearfix">
- $nav $table $nav
-</div>
+$nav
+$table
+$nav
__HTML;
echo $body;
diff --git a/mod/logbrowser/views/default/logbrowser/css.php b/mod/logbrowser/views/default/logbrowser/css.php
deleted file mode 100644
index 5e2f4e168..000000000
--- a/mod/logbrowser/views/default/logbrowser/css.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Elgg logbrowser CSS
- *
- * @package ElggLogBrowser
- */
-
-?>
-#logbrowser_search_area {
- margin-top:10px;
- margin-bottom:10px;
-}
-#log_browser_search_form {
- padding: 10px;
- margin-bottom:10px;
- background-color: #eeeeee;
-}
-.admin_settings.log_browser {
- background-color: #eeeeee;
- padding-top:7px;
- padding-bottom:7px;
-}
-.log_entry {
- margin: 5px;
-}
-.log_entry td, th {
- padding: 4px 8px;
- background: white;
- border: 1px solid #cccccc;
-}
-.log_entry th {
- background-color: #dddddd;
-}
-.log_entry .alt td {
- background: #eeeeee;
-}
-.log_entry_time {
- width: 210px;
-}
-.log_entry_user {
- width: 120px;
-}
-.log_entry_guid {
- width: 80px;
-}
-.log_entry_object {
- width: 120px;
-}
-.log_entry_action {
- width: 75px;
-} \ No newline at end of file
diff --git a/mod/logbrowser/views/default/logbrowser/form.php b/mod/logbrowser/views/default/logbrowser/form.php
index 7f52d04c9..dd2ae0f3c 100644
--- a/mod/logbrowser/views/default/logbrowser/form.php
+++ b/mod/logbrowser/views/default/logbrowser/form.php
@@ -6,7 +6,7 @@
*/
?>
-<div id="logbrowser_search_area">
+<div id="logbrowser-search-area">
<?php
// Time lower limit
@@ -58,9 +58,16 @@
));
?>
- <div id="log_browser_search_form" class="hidden radius8"><?php echo $wrappedform; ?></div>
+ <div id="log-browser-search-form" class="elgg-module elgg-inline-module hidden">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('logbrowser:search'); ?></h3>
+ </div>
+ <div class="elgg-body">
+ <?php echo $wrappedform; ?>
+ </div>
+ </div>
<p>
- <a class="link" onclick="elgg_slide_toggle(this,'#logbrowser_search_area','#log_browser_search_form');">
+ <a class="link" href="#" onclick="elgg_slide_toggle(this,'#logbrowser-search-area','#log-browser-search-form');">
<?php echo elgg_echo('logbrowser:search'); ?>
</a>
</p>
diff --git a/mod/logbrowser/views/default/logbrowser/table.php b/mod/logbrowser/views/default/logbrowser/table.php
index 77de5dcaa..5db495fae 100644
--- a/mod/logbrowser/views/default/logbrowser/table.php
+++ b/mod/logbrowser/views/default/logbrowser/table.php
@@ -8,7 +8,7 @@
$log_entries = $vars['log_entries'];
?>
-<table class="log_entry">
+<table class="elgg-table">
<tr>
<th><?php echo elgg_echo('logbrowser:date'); ?></th>
<th><?php echo elgg_echo('logbrowser:user:name'); ?></th>