diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 12:37:40 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 12:37:40 +0000 |
commit | b28223311752d70306b1f35e028d7db824d466e1 (patch) | |
tree | 5aced4fb7501b6c4f84380af2242560946d3b3ba /mod/logbrowser | |
parent | 2d0dbb89194f61bb9f75c83174a8914d08425d83 (diff) | |
download | elgg-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/logbrowser')
-rw-r--r-- | mod/logbrowser/languages/en.php | 2 | ||||
-rw-r--r-- | mod/logbrowser/start.php | 8 | ||||
-rw-r--r-- | mod/logbrowser/views/default/logbrowser/adminlinks.php | 7 |
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 |