aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-07 12:37:40 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-07 12:37:40 +0000
commitb28223311752d70306b1f35e028d7db824d466e1 (patch)
tree5aced4fb7501b6c4f84380af2242560946d3b3ba /mod
parent2d0dbb89194f61bb9f75c83174a8914d08425d83 (diff)
downloadelgg-b28223311752d70306b1f35e028d7db824d466e1.tar.gz
elgg-b28223311752d70306b1f35e028d7db824d466e1.tar.bz2
Added explore log option to user context menu, albeit in the wrong place.
git-svn-id: https://code.elgg.org/elgg/trunk@1755 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-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