aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/logbrowser/languages/en.php2
-rw-r--r--mod/logbrowser/start.php8
-rw-r--r--mod/logbrowser/views/default/logbrowser/adminlinks.php7
3 files changed, 16 insertions, 1 deletions
diff --git a/mod/logbrowser/languages/en.php b/mod/logbrowser/languages/en.php
index ea507af46..d0190e743 100644
--- a/mod/logbrowser/languages/en.php
+++ b/mod/logbrowser/languages/en.php
@@ -21,6 +21,8 @@
'logbrowser:user' => 'Username to search by',
'logbrowser:starttime' => 'Beginning time (for example "last monday", "1 hour ago")',
'logbrowser:endtime' => 'End time',
+
+ 'logbrowser:explore' => 'Explore log',
);
diff --git a/mod/logbrowser/start.php b/mod/logbrowser/start.php
index 85edc5704..e53843b2f 100644
--- a/mod/logbrowser/start.php
+++ b/mod/logbrowser/start.php
@@ -21,7 +21,13 @@
register_page_handler('logbrowser','logbrowser_page_handler');
// Extend CSS
- extend_view('css','logbrowser/css');
+ extend_view('css','logbrowser/css');
+
+ // Extend context menu with admin logbrowsre link
+ if (isadminloggedin())
+ {
+ extend_view('profile/menu/links','logbrowser/adminlinks');
+ }
}
/**
diff --git a/mod/logbrowser/views/default/logbrowser/adminlinks.php b/mod/logbrowser/views/default/logbrowser/adminlinks.php
new file mode 100644
index 000000000..3754c5042
--- /dev/null
+++ b/mod/logbrowser/views/default/logbrowser/adminlinks.php
@@ -0,0 +1,7 @@
+<?php
+
+?>
+
+<p class="user_menu_admin">
+ <a href="<?php echo $vars['url']; ?>mod/logbrowser/?user_guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("logbrowser:explore"); ?></a>
+</p> \ No newline at end of file